mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-05-06 10:58:14 +00:00
Use sh for postinstall as alpine has no bash
Remove pipefail from postinstall.sh and use POSIX comparison
This commit is contained in:
parent
30457c0e0f
commit
1a1e1b5e8b
@ -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": {
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user