Skip to content

Commit

Permalink
tweak --clear-cache: use exec, so the exit code falls through
Browse files Browse the repository at this point in the history
in case `rm -rf` fails
  • Loading branch information
ryanmjacobs committed Nov 24, 2023
1 parent fb52d58 commit 7cdc09e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c
Expand Up @@ -46,7 +46,7 @@ else
fi

# Hadle --clear-cache
[[ "$1" == "--clear-cache" ]] && { rm -rf "$tmproot"; exit 0; }
[[ "$1" == "--clear-cache" ]] && exec rm -rf "$tmproot"

# ensure our $CC and $CXX variables are set
[[ -z "$CC" ]] && CC=cc
Expand Down

0 comments on commit 7cdc09e

Please sign in to comment.