Made build script exit on fail
This commit is contained in:
6
build
6
build
@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
lsc -bc --no-header -o static/ web-src/script.ls && \
|
lsc -bc --no-header -o static/ web-src/script.ls || exit 1
|
||||||
npx sass web-src/style.scss static/style.css && \
|
npx sass web-src/style.scss static/style.css || exit 2
|
||||||
rustfmt src/*.rs && \
|
rustfmt src/*.rs || exit 3
|
||||||
cargo $(basename $0) "${@:1}"
|
cargo $(basename $0) "${@:1}"
|
||||||
|
|||||||
Reference in New Issue
Block a user