mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-26 20:33:07 +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 pattern=$1
|
||||||
local filename=$2
|
local filename=$2
|
||||||
# Mac OS X requires -i argument
|
# Mac OS X requires -i argument
|
||||||
if [ $OSTYPE = 'darwin11' ]
|
if [[ "$OSTYPE" =~ "darwin" ]]
|
||||||
then
|
then
|
||||||
sed -i '' -e $pattern "$filename"
|
/usr/bin/sed -i '' -e $pattern "$filename"
|
||||||
elif [ $OSTYPE = 'linux-gnu' ]
|
elif [[ "$OSTYPE" =~ "linux" ]]
|
||||||
then
|
then
|
||||||
sed -i -e $pattern "$filename"
|
/bin/sed -i -e $pattern "$filename"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user