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}"