strip-llvm: Simplify stripping out the executable suffix

This commit is contained in:
Martin Storsjö committed 2020-10-09 20:51:11 +03:00
1 parent 5fc9728420
commit bf40eb86fc
1 file changed
+1 -5
+1 -5
View File
@@ -56,11 +56,7 @@ for i in bugpoint c-index-test clang-* diagtool dsymutil git-clang-format hmapto
basename=$i
if [ -n "$EXEEXT" ]; then
# Some in the list are expanded globs, some are plain names we list.
case $i in
*$EXEEXT)
basename=$(echo $i | sed "s/$EXEEXT\$//")
;;
esac
basename=${i%$EXEEXT}
i=$basename
if [ -e $basename$EXEEXT ]; then
i=$basename$EXEEXT