Commit 806f23bf authored by Dan Notestein's avatar Dan Notestein
Browse files

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.
parent 2d7e23bd
Loading
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment