diff --git a/scripts/update_android_gradle_version.sh b/scripts/update_android_gradle_version.sh index ec29ebb..97fc95f 100755 --- a/scripts/update_android_gradle_version.sh +++ b/scripts/update_android_gradle_version.sh @@ -1,4 +1,8 @@ PACKAGE_VERSION=$(cat ./package.json | jq -r '.version') echo "updating gradle version name to $PACKAGE_VERSION" # sed command works only on linux based systems as macOS version expects a backup file passed additionally -sed -i '' -e "/VERSION_NAME=/ s/=.*/=$PACKAGE_VERSION/" ./gradle.properties +if [ "$(uname)" == "Darwin" ]; then + sed -i '' -e "/VERSION_NAME=/ s/=.*/=$PACKAGE_VERSION/" ./gradle.properties +else + sed -i -e "/VERSION_NAME=/ s/=.*/=$PACKAGE_VERSION/" ./gradle.properties +fi \ No newline at end of file