Use sh for postinstall as alpine has no bash

Remove pipefail from postinstall.sh and use POSIX comparison
This commit is contained in:
Pablo Carranza Velez 2016-06-07 13:25:45 -03:00
parent 30457c0e0f
commit 1a1e1b5e8b
2 changed files with 2 additions and 3 deletions

View File

@ -2,7 +2,7 @@
"name": "resin-supervisor", "name": "resin-supervisor",
"version": "1.11.0", "version": "1.11.0",
"scripts": { "scripts": {
"postinstall": "bash postinstall.sh", "postinstall": "sh postinstall.sh",
"start": "./entry.sh" "start": "./entry.sh"
}, },
"dependencies": { "dependencies": {

View File

@ -1,7 +1,6 @@
set -o errexit set -o errexit
set -o pipefail
if [[ $NODE_ENV == 'production' ]]; then if [ "$NODE_ENV" = "production" ]; then
# Remove node-gyp cache # Remove node-gyp cache
rm -rf ~/.node-gyp/ rm -rf ~/.node-gyp/
# Remove cached git deps # Remove cached git deps