From: Silvio Rhatto Date: Fri, 22 Sep 2017 00:19:22 +0000 (-0300) Subject: Exclude src/ and stow/ when building the package list X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=214a0e75d3702b2036a6ba6dce45cf2df5412649;p=stowpkg.git Exclude src/ and stow/ when building the package list --- diff --git a/stowpkg b/stowpkg index 7778f00..6ad0bd5 100755 --- 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