fix set -e

This commit is contained in:
Urban Modig
2025-10-01 11:50:05 +02:00
parent 149130a889
commit c93104874b

View File

@ -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