Oops, redo/whichpython.do would fail if python2.7 didn't exist.
This commit is contained in:
parent
12b0d59b9f
commit
8924fa35fa
1 changed files with 2 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
|||
exec >&2
|
||||
for py in python2.7 python2 python; do
|
||||
for py in intentionally-missing python2.7 python2 python; do
|
||||
echo "Trying: $py"
|
||||
cmd=$(command -v "$py")
|
||||
cmd=$(command -v "$py" || true)
|
||||
# intentionally using the 'print statement' (as opposed to print
|
||||
# function) here, to rule out any python3 interpreters
|
||||
out=$($cmd -c 'print "success"' 2>/dev/null) || true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue