From e25d70c62308ba6488fff093a88f092631c7ad2f Mon Sep 17 00:00:00 2001 From: varjolintu Date: Tue, 23 May 2017 14:41:43 +0300 Subject: [PATCH] Modified install script --- install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index b95e937..893fe68 100755 --- a/install.sh +++ b/install.sh @@ -129,7 +129,11 @@ else fi # Replace path to host -sed -i "" -e "s/%%replace%%/$ESCAPED_PATH/g" "$TARGET_DIR/$APP_NAME.json" +if [ $(uname -s) == 'Darwin' ]; then + sed -i "" -e "s/%%replace%%/$ESCAPED_PATH/g" "$TARGET_DIR/$APP_NAME.json" +else + sed -i -e "s/%%replace%%/$ESCAPED_PATH/g" "$TARGET_DIR/$APP_NAME.json" +fi # Set permissions for the manifest so that all users can read it. chmod o+r "$TARGET_DIR/$APP_NAME.json"