[arcanist] rm -f for write protected temp files
authorNick Desaulniers <ndesaulniers@google.com>
Mon, 17 Apr 2023 20:18:16 +0000 (13:18 -0700)
committerNick Desaulniers <ndesaulniers@google.com>
Mon, 17 Apr 2023 20:19:02 +0000 (13:19 -0700)
commitb3dd9041e650deefbba0c75cf2295c28010aedb2
treeaf448390e7e8b8fb912beb8f1c797b4e16b4a03b
parent10c17c97ebaf81ac26f6830e51a7a57ddcf63cd2
[arcanist] rm -f for write protected temp files

When running `arc diff` on a newly added file,
utils/arcanist/clang-format.sh is run. For new files there is no change,
but the script will bail. Without the use of the -f flag, we get
interactive prompts like:
rm: remove write-protected regular file '/tmp/tmp.ReMybrBw35'?

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D148555
utils/arcanist/clang-format.sh