From 47392c5a901229c7d1c4f0b8109bf62ca6dcd86d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Tue, 25 Sep 2018 15:32:46 +0300 Subject: [PATCH] Don't expect that all files exist in strip-llvm.sh If run multiple times, this removal would try to remove a file named clang-*, which doesn't exist. --- strip-llvm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/strip-llvm.sh b/strip-llvm.sh index 1c01a2a..da0f3ae 100755 --- a/strip-llvm.sh +++ b/strip-llvm.sh @@ -36,7 +36,7 @@ for i in bugpoint c-index-test clang-* diagtool dsymutil git-clang-format hmapto # was a plain number (as if the original name was clang-7); if it wasn't # empty, remove the tool. if [ "$(echo $suffix | tr -d '[0-9]')" != "" ]; then - rm $i + rm -f $i fi ;; llvm-ar|llvm-cvtres|llvm-dlltool|llvm-nm|llvm-objdump|llvm-ranlib|llvm-rc|llvm-readobj|llvm-strings|llvm-pdbutil)