Skip to content

Commit

Permalink
Oops, redo/whichpython.do would fail if python2.7 didn't exist.
Browse files Browse the repository at this point in the history
  • Loading branch information
apenwarr committed Jun 20, 2019
1 parent 12b0d59 commit 8924fa3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions redo/whichpython.do
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 8924fa3

Please sign in to comment.