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 # Use explicit if-blocks (safe with 'set -e') and avoid short-circuit pitfalls
count=0 count=0
if [[ -n $collection ]]; then if [[ -n $collection ]]; then
((count++)) ((++count))
log "Count++ via collection" log "Count++ via collection"
fi fi
if [[ -n $post ]]; then if [[ -n $post ]]; then
((count++)) ((++count))
log "Count++ via post" log "Count++ via post"
fi fi
if [[ -n $file ]]; then if [[ -n $file ]]; then
((count++)) ((++count))
log "Count++ via file" log "Count++ via file"
fi fi
@ -351,3 +351,4 @@ fi
# cleanup happens via trap # cleanup happens via trap
exit 0 exit 0