1
0
Fork 0
mirror of synced 2024-05-25 19:41:14 -04:00

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

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