From 2775e5f923c93123ba9e53a1a21ceed9ec700cdd Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Sun, 22 Jan 2023 11:09:03 -0300 Subject: [PATCH] Exclude .git, .hooks from 'portzap install' --- bin/portzap | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/portzap b/bin/portzap index 8d7989c..961d2fb 100755 --- a/bin/portzap +++ b/bin/portzap @@ -104,7 +104,8 @@ install() { exit 1 fi cd $portzap_dir - find -s . -maxdepth 1 -type d -exec $libexec_dir/install-directory $ports_dir $libexec_dir {} + + find -E -s . -regex .+[^\.git] -regex .+[^\.hooks] -maxdepth 1 -type d \ + -exec $libexec_dir/install-directory $ports_dir $libexec_dir {} + } case $1 in