From 5601ecb9881d5cddf14d50c27aaa93a8802973bc Mon Sep 17 00:00:00 2001 From: veclav talica Date: Fri, 16 Feb 2024 20:25:19 +0500 Subject: [PATCH] proper-er shell usage --- prepare.sh | 13 ++++++------- upload.sh | 2 ++ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/prepare.sh b/prepare.sh index fa42a09..2a88a7f 100755 --- a/prepare.sh +++ b/prepare.sh @@ -1,9 +1,8 @@ #!/usr/bin/env bash -git submodule init -git submodule update -cd tools/mmd -make release -cd build -make -cd ../.. +set +e + +git submodule update --init --recursive + +(cd tools/mmd && make release) +(cd tools/mmd/build && make) diff --git a/upload.sh b/upload.sh index a3586c2..dd5a4ab 100755 --- a/upload.sh +++ b/upload.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash +set +e + for cur in ./html/{*,*/*,*/*/*}; do if [ -f "$cur" ] && [[ ! "$cur" == *.upload-checksum ]]; then if [ -f "$cur.upload-checksum" ]; then