Merge pull request #38 from caseyscarborough/patch-1

Fix issue with 'sed' command on Mac OS X.
This commit is contained in:
Marcin Kulik
2013-10-01 23:18:45 -07:00

View File

@@ -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