Fixed small python detection bug
This commit is contained in:
parent
9862a7bade
commit
76065290c5
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
'''':
|
'''':
|
||||||
for pyint in python3 python python2; do
|
for pyint in python3 python python2; do
|
||||||
which $pyint >/dev/null 2>&1 && exec $pyint "$0" "$@"
|
command -v $pyint >/dev/null 2>&1 && exec $pyint "$0" "$@"
|
||||||
done
|
done
|
||||||
echo "$0: No python could be found" >&2
|
echo "$0: No python could be found" >&2
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in a new issue