Fix set -e bug in cache-manager cleanup_stale_locks
The short-circuit pattern `[[ $cleaned -gt 0 ]] && _log "..."` causes the script to exit when $cleaned is 0 because the [[ ]] test returns exit code 1, and with set -e this terminates the script. Changed to if/then syntax which doesn't have this issue.
Loading
Please sign in to comment