Do not install the ports collection twice

Fix #5
This commit is contained in:
0x1eef 2023-01-23 11:49:17 -03:00
parent a4e5b2f9be
commit fc53b4f992
2 changed files with 10 additions and 4 deletions

View file

@ -103,8 +103,16 @@ install() {
echo "The install command should be run as root."
exit 1
fi
cd $portzap_dir
find -s . -maxdepth 1 -type f \
\( -not -name ".gitignore" \) \
\( -not -name ".arcconfig" \) \
-exec $libexec_dir/install-file $ports_dir {} +
find -s . -maxdepth 1 -type d \
\( -not -name "." \) \
\( -not -name ".git" \) \
\( -not -name ".hooks" \) \
-exec $libexec_dir/install-directory $ports_dir $libexec_dir {} +
}

View file

@ -19,7 +19,5 @@ for i in $(seq 3 $#); do
# Install subdirs (recursive)
find -s $relative_portzap_dir -depth 1 -type d \
\( -not -name ".git" \) \
\( -not -name ".hooks" \) \
-exec $libexec_dir/install-directory $ports_dir $libexec_dir {} \;
done