]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
buildconf: avoid using tempfile when removing files
authorAlexander V. Tikhonov <avtikhon@tarantool.org>
Fri, 8 Nov 2019 12:08:04 +0000 (15:08 +0300)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 15 Apr 2020 10:53:53 +0000 (12:53 +0200)
Closes #5213

buildconf

index 509575312951eb5dc55792ebb9e9560a0e107487..383665a7b98d854998d59a9a42c9bfb9b9b53dd3 100755 (executable)
--- a/buildconf
+++ b/buildconf
@@ -64,16 +64,7 @@ findtool(){
 #
 removethis(){
   if test "$#" = "1"; then
-    find . -depth -name $1 -print > buildconf.tmp.$$
-    while read fdname
-    do
-      if test -f "$fdname"; then
-        rm -f "$fdname"
-      elif test -d "$fdname"; then
-        rm -f -r "$fdname"
-      fi
-    done < buildconf.tmp.$$
-    rm -f buildconf.tmp.$$
+    find . -depth -name $1 -print -exec rm -rf {} \;
   fi
 }