From baa8744ae5e4c6269e4be9099bba57ed414c7eb9 Mon Sep 17 00:00:00 2001 From: linus torvalds Date: Fri, 22 Jun 2018 11:28:45 +0800 Subject: [PATCH] compatible new.sh with OSX --- integration_tests/new.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/integration_tests/new.sh b/integration_tests/new.sh index 7ee233c..35411eb 100755 --- a/integration_tests/new.sh +++ b/integration_tests/new.sh @@ -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