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:
parent
e72e3b47a0
commit
f7a8bf10ba
1 changed files with 1 additions and 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
|
||||
|
|
Loading…
Reference in a new issue