Skip to content

Commit

Permalink
Fix script
Browse files Browse the repository at this point in the history
It is only legal to `return` from a function or sourced script. The
right builtin to use here is `exit`.
  • Loading branch information
anishathalye committed Jun 7, 2018
1 parent e72e3b4 commit f7a8bf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/dotbot
Expand Up @@ -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
Expand Down

0 comments on commit f7a8bf1

Please sign in to comment.