From: Paul Hänsch Date: Mon, 23 Aug 2021 13:45:31 +0000 (+0200) Subject: bugfix: avoid DB damage when updating nonexist file X-Git-Url: https://git.plutz.net/?p=serve0;a=commitdiff_plain;h=0499c5946553b5ce74c234f07d200d31548c3ae4 bugfix: avoid DB damage when updating nonexist file --- diff --git a/multitag.sh b/multitag.sh index 353ead6..9848ac3 100644 --- a/multitag.sh +++ b/multitag.sh @@ -21,6 +21,7 @@ for select in $(seq 1 $(POST_COUNT select)); do read -r length width height tags comment fn <<-EOF $(meta_info "$file") EOF + [ "$fn" ] || continue tags="$(UNSTRING "${tags#tags=}" |tr , '\n')" if [ ! "$deltags" ]; then