mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-20 23:56:20 +08:00
fixing replace for mountain lion
This commit is contained in:
parent
563fa46ba4
commit
9ef487a7a5
@ -67,12 +67,12 @@ function replace {
|
||||
local pattern=$1
|
||||
local filename=$2
|
||||
# Mac OS X requires -i argument
|
||||
if [ $OSTYPE = 'darwin11' ]
|
||||
if [[ "$OSTYPE" =~ "darwin" ]]
|
||||
then
|
||||
sed -i '' -e $pattern "$filename"
|
||||
elif [ $OSTYPE = 'linux-gnu' ]
|
||||
/usr/bin/sed -i '' -e $pattern "$filename"
|
||||
elif [[ "$OSTYPE" =~ "linux" ]]
|
||||
then
|
||||
sed -i -e $pattern "$filename"
|
||||
/bin/sed -i -e $pattern "$filename"
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user