From 214a0e75d3702b2036a6ba6dce45cf2df5412649 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 21 Sep 2017 21:19:22 -0300 Subject: Exclude src/ and stow/ when building the package list --- stowpkg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3