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