fix set -e
This commit is contained in:
@ -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
|
||||||
|
|
||||||
Reference in New Issue
Block a user