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:
Casey Scarborough
2013-10-01 18:51:47 -04:00
parent e1dc62549b
commit 9784e9899b

View File

@@ -32,7 +32,11 @@ fi
$SUDO curl -skL $BIN_URL -o $TARGET
if [ ! $(which python2 2>/dev/null) ]; then
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