Try python2 and python for the install script
This commit is contained in:
parent
3355c05704
commit
eaeaec76ad
|
@ -11,12 +11,16 @@
|
||||||
I() {
|
I() {
|
||||||
set -u
|
set -u
|
||||||
|
|
||||||
if ! hash python 2> /dev/null; then
|
if hash python2 2> /dev/null; then
|
||||||
|
PY=python2
|
||||||
|
elif hash python 2> /dev/null; then
|
||||||
|
PY=python
|
||||||
|
else
|
||||||
echo "Error: To use this script you need to have Python installed"
|
echo "Error: To use this script you need to have Python installed"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
python - <<'EOF'
|
$PY - <<'EOF'
|
||||||
if 1:
|
if 1:
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
Loading…
Reference in New Issue