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: http://git.plutz.net/?a=commitdiff_plain;h=0499c5946553b5ce74c234f07d200d31548c3ae4;hp=0b86ad6af8721216959da4b3194c4ab3208c1ada;p=serve0 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