mirror of
1
0
Fork 0

Fix script

It is only legal to `return` from a function or sourced script. The
right builtin to use here is `exit`.
This commit is contained in:
Anish Athalye 2018-06-07 13:04:19 -04:00
parent e72e3b47a0
commit f7a8bf10ba
1 changed files with 1 additions and 1 deletions

View File

@ -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