aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-09-21 21:19:22 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-09-21 21:19:22 -0300
commit214a0e75d3702b2036a6ba6dce45cf2df5412649 (patch)
tree5dd9b990db3007084dabb21b354ddcfebc260da4
parent155a47c8b763aedf2a5394650c2df9298badd8c6 (diff)
downloadstowpkg-214a0e75d3702b2036a6ba6dce45cf2df5412649.tar.gz
stowpkg-214a0e75d3702b2036a6ba6dce45cf2df5412649.tar.bz2
Exclude src/ and stow/ when building the package list
-rwxr-xr-xstowpkg2
1 files changed, 1 insertions, 1 deletions
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