Merge pull request #139 from myvyang/master
Make new.sh compatible with OSX
This commit is contained in:
commit
14e67e9a23
@ -17,7 +17,11 @@ module_name="$1"
|
|||||||
module_path="integration_tests/$module_name"
|
module_path="integration_tests/$module_name"
|
||||||
|
|
||||||
function doReplacements() {
|
function doReplacements() {
|
||||||
sed -i "s/#{MODULE_NAME}/$module_name/g" $1
|
if [ "$(uname)" == "Darwin" ]; then
|
||||||
|
sed -i "" -e "s/#{MODULE_NAME}/$module_name/g" $1
|
||||||
|
else
|
||||||
|
sed -i "s/#{MODULE_NAME}/$module_name/g" $1
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
mkdir -p $module_path
|
mkdir -p $module_path
|
||||||
|
Loading…
Reference in New Issue
Block a user