summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2021-01-16 11:59:32 -0500
committerBen Sima <ben@bsima.me>2021-01-22 07:19:33 -0500
commit809691f43ca6f7920e2ac3d5bc5e0645d4745d60 (patch)
tree997068a249f25102d6fad210bf4f9279f3dabfb0
parent9b01252cf62f6b95e83184662514802994a12809 (diff)
Stop shipping if lint fails
-rw-r--r--Biz/Bild/ShellHook.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/Biz/Bild/ShellHook.sh b/Biz/Bild/ShellHook.sh
index b71d894..85694ec 100644
--- a/Biz/Bild/ShellHook.sh
+++ b/Biz/Bild/ShellHook.sh
@@ -64,7 +64,6 @@ function push() {
# TODO: convert to haskell
function ship() {
- lint
stuff=(${@})
if [[ ${#stuff[@]} -eq 0 ]]
then
@@ -75,11 +74,12 @@ function ship() {
# Hero/Prod.nix # disabled bc herocomcis.app domain is broken
)
fi
- bild --test ${stuff[@]} && \
- for thing in ${stuff[@]}
- do
- push $thing
- done
+ lint \
+ && bild --test ${stuff[@]} \
+ && for thing in ${stuff[@]}
+ do
+ push $thing
+ done
}
function run-sentry() {