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 #!/usr/bin/env bash
git submodule init set +e
git submodule update
cd tools/mmd git submodule update --init --recursive
make release
cd build (cd tools/mmd && make release)
make (cd tools/mmd/build && make)
cd ../..

View File

@ -1,5 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set +e
for cur in ./html/{*,*/*,*/*/*}; do for cur in ./html/{*,*/*,*/*/*}; do
if [ -f "$cur" ] && [[ ! "$cur" == *.upload-checksum ]]; then if [ -f "$cur" ] && [[ ! "$cur" == *.upload-checksum ]]; then
if [ -f "$cur.upload-checksum" ]; then if [ -f "$cur.upload-checksum" ]; then