Fail on build errors. Quote npm args

This commit is contained in:
Condorra 2023-12-29 00:48:27 +11:00
parent 257d1b3c7e
commit 265df4aa77

View File

@ -1,8 +1,8 @@
#!/bin/bash
#!/bin/bash -e
# Concourse Worker doesn't support IPv6 well yet.
function npm-ipv4() {
node --dns-result-order=ipv4first $(which npm) $*
node --dns-result-order=ipv4first $(which npm) "$*"
}
npm-ipv4 install -Dy
npm-ipv4 -y exec webpack