From 65ecdd20e3a0e3fa6d28b4b15f344d3a4446c305 Mon Sep 17 00:00:00 2001 From: Jonathan Foucher <jfoucher@gmail.com> Date: Tue, 13 Sep 2022 13:01:28 +0200 Subject: [PATCH] fail script if a step fails. --- deploy | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deploy b/deploy index b38dea2c..8a21f69a 100755 --- a/deploy +++ b/deploy @@ -12,11 +12,11 @@ git stash git pull ## Composer -php8.1 /usr/bin/composer install --prefer-dist --no-interaction --optimize-autoloader +php8.1 $(which composer) install --prefer-dist --no-interaction --optimize-autoloader || exit 1 ## CSS & JS -npm install -npm run production +npm install || exit 1 +npm run production || exit 1 # Get correct version info from git tag and replace into template VERSION=$(git describe --tags) -- GitLab