gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnurl] 198/264: buildconf: avoid using tempfile when removing files


From: gnunet
Subject: [gnurl] 198/264: buildconf: avoid using tempfile when removing files
Date: Thu, 30 Apr 2020 16:08:21 +0200

This is an automated email from the git hooks/post-receive script.

nikita pushed a commit to branch master
in repository gnurl.

commit 1e41bec96a6e2fcb7be3146ba0e6795d7f59fb66
Author: Alexander V. Tikhonov <address@hidden>
AuthorDate: Fri Nov 8 15:08:04 2019 +0300

    buildconf: avoid using tempfile when removing files
    
    Closes #5213
---
 buildconf | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/buildconf b/buildconf
index 509575312..383665a7b 100755
--- 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
 }
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]