From 8eac89404e0681d562a66d932cfad69fbd3d2b68 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Thu, 22 Jul 2021 19:56:50 +1000 Subject: [PATCH] CI: Fail entire build script if any command fails (#1443) At the moment, the build script exits with 0 even if any of the commands fail. Setting `-e` fixes this. --- scripts/build.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/build.sh b/scripts/build.sh index bc8bb918a..07c25bcbb 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash +set -e + PHOTOPRISM_DATE=`date -u +%y%m%d` PHOTOPRISM_VERSION=`git describe --always`