[packages/npm] sort to remove deepest path first

glen glen at pld-linux.org
Mon Oct 24 13:44:50 CEST 2016


commit 16df6b1c5ac0494fb81a5f0782646f04ab381b50
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Oct 24 14:43:22 2016 +0300

    sort to remove deepest path first

 npm.spec | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/npm.spec b/npm.spec
index 76ad458..56e9bc8 100644
--- a/npm.spec
+++ b/npm.spec
@@ -65,7 +65,7 @@ rm bin/npm bin/npm.cmd
 # clean up node_modules/
 for i in README.md Readme.md README.markdown LICENSE LICENSE.md CHANGES.md \
          changelog.md .npmignore .travis.yml test examples example samples; do
-	find node_modules -name $i | xargs -r rm -rv
+	find node_modules -name $i -print0 | sort -rz | xargs -0r rm -rv
 done
 rm lib/fetch-package-metadata.md
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/npm.git/commitdiff/248e64a3f0c7634689b80af6066d230711fec0a1



More information about the pld-cvs-commit mailing list