Fixed small python detection bug

This commit is contained in:
Sven Velt 2023-12-01 09:02:59 +01:00
parent 9862a7bade
commit 76065290c5

View file

@ -1,7 +1,7 @@
#!/bin/sh
'''':
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
echo "$0: No python could be found" >&2
exit 1