summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorAnish Athalye <me@anishathalye.com>2018-06-07 13:04:19 -0400
committerAnish Athalye <me@anishathalye.com>2018-06-07 13:04:19 -0400
commitf7a8bf10ba1d4073f6501ea1518d0e94ded4ac0e (patch)
treecbae09c287cf115e0939a22fb9aa6375c1a1d71c /bin
parente72e3b47a0f9b23d966961776a1575c9354a491f (diff)
Fix script
It is only legal to `return` from a function or sourced script. The right builtin to use here is `exit`.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/dotbot2
1 files changed, 1 insertions, 1 deletions
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