mirror of
https://github.com/asciinema/asciinema.git
synced 2025-12-16 03:38:03 +01:00
Merge pull request #38 from caseyscarborough/patch-1
Fix issue with 'sed' command on Mac OS X.
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