Merge pull request #139 from myvyang/master

Make new.sh compatible with OSX
This commit is contained in:
justinbastress 2018-06-22 09:22:29 -04:00 committed by GitHub
commit 14e67e9a23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -17,7 +17,11 @@ module_name="$1"
module_path="integration_tests/$module_name"
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