From f7a8bf10ba1d4073f6501ea1518d0e94ded4ac0e Mon Sep 17 00:00:00 2001 From: Anish Athalye Date: Thu, 7 Jun 2018 13:04:19 -0400 Subject: [PATCH] Fix script It is only legal to `return` from a function or sourced script. The right builtin to use here is `exit`. --- bin/dotbot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/dotbot b/bin/dotbot index 78a0725..123fc93 100755 --- a/bin/dotbot +++ b/bin/dotbot @@ -11,7 +11,7 @@ which python3 >/dev/null 2>&1 && exec python3 "$0" "$@" which python >/dev/null 2>&1 && exec python "$0" "$@" which python2 >/dev/null 2>&1 && exec python2 "$0" "$@" >&2 echo "error: cannot find python" -return 1 +exit 1 ''' # python code