From 0499c5946553b5ce74c234f07d200d31548c3ae4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Mon, 23 Aug 2021 15:45:31 +0200 Subject: [PATCH] bugfix: avoid DB damage when updating nonexist file --- multitag.sh | 1 + 1 file changed, 1 insertion(+) 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 -- 2.39.2