diff --git a/package.json b/package.json index 90764154..ab9f639d 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "resin-supervisor", "version": "1.11.0", "scripts": { - "postinstall": "bash postinstall.sh", + "postinstall": "sh postinstall.sh", "start": "./entry.sh" }, "dependencies": { diff --git a/postinstall.sh b/postinstall.sh index 0ed001ba..799044c9 100755 --- a/postinstall.sh +++ b/postinstall.sh @@ -1,7 +1,6 @@ set -o errexit -set -o pipefail -if [[ $NODE_ENV == 'production' ]]; then +if [ "$NODE_ENV" = "production" ]; then # Remove node-gyp cache rm -rf ~/.node-gyp/ # Remove cached git deps