diff options
author | Alexander V. Tikhonov <avtikhon@tarantool.org> | 2019-11-08 15:08:04 +0300 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-04-15 12:53:53 +0200 |
commit | 1e41bec96a6e2fcb7be3146ba0e6795d7f59fb66 (patch) | |
tree | f0524bed82e1df08b9778e66985d222a8b932b03 /buildconf | |
parent | 4cd239fbf692e2e33c95deafaee5bc0797c098e0 (diff) | |
download | curl-1e41bec96a6e2fcb7be3146ba0e6795d7f59fb66.tar.gz |
buildconf: avoid using tempfile when removing files
Closes #5213
Diffstat (limited to 'buildconf')
-rwxr-xr-x | buildconf | 11 |
1 files changed, 1 insertions, 10 deletions
@@ -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 } |