From 61d2ca0d76a283f88070969beb99b8e7cc703143 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sat, 18 Nov 2023 08:40:43 +0000 Subject: [PATCH] fix: warning if run.local isn't preset --- templates/astro/run.twig | 2 +- templates/drupal/run.twig | 2 +- templates/fractal/run.twig | 2 +- templates/terraform/run.twig | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/astro/run.twig b/templates/astro/run.twig index 579bb67..8cabdb1 100755 --- a/templates/astro/run.twig +++ b/templates/astro/run.twig @@ -104,7 +104,7 @@ function _run { {% endif %} # Include any local tasks. -source run.local || true +[[ -e run.local ]] && source run.local TIMEFORMAT=$'\nTask completed in %3lR' time "${@:-help}" diff --git a/templates/drupal/run.twig b/templates/drupal/run.twig index 50dfd1f..0d42b75 100755 --- a/templates/drupal/run.twig +++ b/templates/drupal/run.twig @@ -131,7 +131,7 @@ function _run { } # Include any local tasks. -source run.local || true +[[ -e run.local ]] && source run.local TIMEFORMAT=$'\nTask completed in %3lR' time "${@:-help}" diff --git a/templates/fractal/run.twig b/templates/fractal/run.twig index 527acb2..134a9f6 100755 --- a/templates/fractal/run.twig +++ b/templates/fractal/run.twig @@ -121,7 +121,7 @@ function _run { {% endif %} # Include any local tasks. -source run.local || true +[[ -e run.local ]] && source run.local TIMEFORMAT=$'\nTask completed in %3lR' time "${@:-help}" diff --git a/templates/terraform/run.twig b/templates/terraform/run.twig index 8faf5bc..116c43c 100755 --- a/templates/terraform/run.twig +++ b/templates/terraform/run.twig @@ -24,7 +24,7 @@ function help { } # Include any local tasks. -source run.local || true +[[ -e run.local ]] && source run.local TIMEFORMAT=$'\nTask completed in %3lR' time "${@:-help}"