diff --git a/run b/run index 090690d..8ae65d7 100755 --- a/run +++ b/run @@ -121,7 +121,8 @@ function _run { } # Include any local tasks. -[[ -e run.local ]] && source run.local +# https://stackoverflow.com/a/6659698 +[[ -e "${BASH_SOURCE%/*}/run.local" ]] && source "${BASH_SOURCE%/*}/run.local" TIMEFORMAT=$'\nTask completed in %3lR' time "${@:-help}"