From 7928ee99886f21ae483ce6552629816e050ae04e Mon Sep 17 00:00:00 2001 From: Seoxi Ryouko <3-seoxi@users.noreply.git.starbit.dev> Date: Sun, 9 Feb 2025 08:24:27 -0500 Subject: [PATCH] Made build script exit on fail --- build | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build b/build index 4864b31..acf28aa 100755 --- a/build +++ b/build @@ -1,5 +1,5 @@ #!/usr/bin/env bash -lsc -bc --no-header -o static/ web-src/script.ls && \ -npx sass web-src/style.scss static/style.css && \ -rustfmt src/*.rs && \ +lsc -bc --no-header -o static/ web-src/script.ls || exit 1 +npx sass web-src/style.scss static/style.css || exit 2 +rustfmt src/*.rs || exit 3 cargo $(basename $0) "${@:1}"