proper-er shell usage

This commit is contained in:
veclav talica 2024-02-16 20:25:19 +05:00
parent 9b959408bb
commit 5601ecb988
2 changed files with 8 additions and 7 deletions

View File

@ -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)

View File

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