mirror of
https://github.com/asciinema/asciinema.git
synced 2025-12-16 11:48:13 +01:00
Adjust shebang on systems without python2 symlink (I look at you OSX...)
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python2
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
|
|||||||
@@ -31,6 +31,10 @@ fi
|
|||||||
|
|
||||||
$SUDO curl -skL $BIN_URL -o $TARGET
|
$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
|
if [[ $? == 0 ]]; then
|
||||||
$SUDO chmod +x $TARGET
|
$SUDO chmod +x $TARGET
|
||||||
echo "Done. Now start recording by typing \"asciiio\"."
|
echo "Done. Now start recording by typing \"asciiio\"."
|
||||||
|
|||||||
Reference in New Issue
Block a user