From 265df4aa7740ec220ed727fbcd50c0d1c1633385 Mon Sep 17 00:00:00 2001 From: Condorra Date: Fri, 29 Dec 2023 00:48:27 +1100 Subject: [PATCH] Fail on build errors. Quote npm args --- build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index efface6..0bdfe17 100755 --- a/build.sh +++ b/build.sh @@ -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