From c93104874bec5f759b74da1f952aba2b8397d37e Mon Sep 17 00:00:00 2001 From: Urban Modig Date: Wed, 1 Oct 2025 11:50:05 +0200 Subject: [PATCH] fix set -e --- download.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/download.sh b/download.sh index 709137e..0494129 100755 --- a/download.sh +++ b/download.sh @@ -320,15 +320,15 @@ done # Use explicit if-blocks (safe with 'set -e') and avoid short-circuit pitfalls count=0 if [[ -n $collection ]]; then - ((count++)) + ((++count)) log "Count++ via collection" fi if [[ -n $post ]]; then - ((count++)) + ((++count)) log "Count++ via post" fi if [[ -n $file ]]; then - ((count++)) + ((++count)) log "Count++ via file" fi @@ -351,3 +351,4 @@ fi # cleanup happens via trap exit 0 + \ No newline at end of file