diff options
author | Anish Athalye <me@anishathalye.com> | 2018-06-07 13:04:19 -0400 |
---|---|---|
committer | Anish Athalye <me@anishathalye.com> | 2018-06-07 13:04:19 -0400 |
commit | f7a8bf10ba1d4073f6501ea1518d0e94ded4ac0e (patch) | |
tree | cbae09c287cf115e0939a22fb9aa6375c1a1d71c | |
parent | e72e3b47a0f9b23d966961776a1575c9354a491f (diff) |
Fix script
It is only legal to `return` from a function or sourced script. The
right builtin to use here is `exit`.
-rwxr-xr-x | bin/dotbot | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |