Adjust shebang on systems without python2 symlink (I look at you OSX...)

This commit is contained in:
Marcin Kulik
2013-08-04 19:33:27 +02:00
parent d3a2ac69e0
commit e6874225ee
2 changed files with 5 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
import sys
import os

View File

@@ -31,6 +31,10 @@ fi
$SUDO curl -skL $BIN_URL -o $TARGET
if [ ! $(which python2 2>/dev/null) ]; then
$SUDO sed -i '1 s/python2/python/' $TARGET
fi
if [[ $? == 0 ]]; then
$SUDO chmod +x $TARGET
echo "Done. Now start recording by typing \"asciiio\"."