Exclude .git, .hooks from 'portzap install'

This commit is contained in:
0x1eef 2023-01-22 11:09:03 -03:00
parent e8c78f4f0e
commit 2775e5f923

View file

@ -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