Made build script exit on fail

This commit is contained in:
Seoxi Ryouko
2025-02-09 08:24:27 -05:00
parent 9571d38030
commit 7928ee9988

6
build
View File

@ -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}"