mirror of
https://github.com/asciinema/asciinema.git
synced 2025-12-16 11:48:13 +01:00
Fix issue with 'sed' command on Mac OS X.
When running the script on Mac OS X, the sed command expects a parameter with the -i flag that specifies the backup extension. In this case, no backup is needed, so it can be a blank string.
This commit is contained in:
6
install
6
install
@@ -32,7 +32,11 @@ fi
|
||||
$SUDO curl -skL $BIN_URL -o $TARGET
|
||||
|
||||
if [ ! $(which python2 2>/dev/null) ]; then
|
||||
$SUDO sed -i '1 s/python2/python/' $TARGET
|
||||
if [ $(uname) == 'Darwin' ]; then
|
||||
$SUDO sed -i '' '1 s/python2/python/' $TARGET
|
||||
else
|
||||
$SUDO sed -i '1 s/python2/python/' $TARGET
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ $? == 0 ]]; then
|
||||
|
||||
Reference in New Issue
Block a user