]> gitweb.fluxo.info Git - stowpkg.git/commitdiff
Exclude src/ and stow/ when building the package list
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 22 Sep 2017 00:19:22 +0000 (21:19 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 22 Sep 2017 00:19:22 +0000 (21:19 -0300)
stowpkg

diff --git a/stowpkg b/stowpkg
index 7778f00ac9cf57f9eb8da3caa1b098c3567617f5..6ad0bd519fb788ece3e1ef3a3a7130c37e446a06 100755 (executable)
--- a/stowpkg
+++ b/stowpkg
@@ -255,7 +255,7 @@ stowpkg_list () {
     local name="-name \'$pattern*\'"
   fi
 
-  find $BASE -type l | while read file; do
+  find $BASE -type l | grep -v "^src/" | grep -v "^stow/" | while read file; do
     dest="`stat $file | head -n 1 | cut -d '>' -f 2 | sed -e 's/ //'`"
 
     if echo $dest | grep -q "^stow/" || echo $dest | grep -q "/stow/"; then