Install directories in alphabetic order

This commit is contained in:
0x1eef 2023-01-21 03:14:06 -03:00
parent 4a22c51a03
commit 9f52040f86
2 changed files with 2 additions and 2 deletions

View file

@ -104,7 +104,7 @@ install() {
exit 1
fi
cd $portzap_dir
find . -maxdepth 1 -type d -exec $libexec_dir/install-directory $ports_dir $libexec_dir {} +
find -s . -maxdepth 1 -type d -exec $libexec_dir/install-directory $ports_dir $libexec_dir {} +
}
case $1 in

View file

@ -8,5 +8,5 @@ for i in $(seq 3 $#); do
install -d -g $group -m $mode $src $dest/$dir
echo Install $(realpath $dest/$dir)
find $dir -maxdepth 1 -type f -exec $libexec_dir/install-file $dest/$dir {} +
find $dir -depth 1 -type d -exec $libexec_dir/install-directory $dest $libexec_dir {} \;
find -s $dir -depth 1 -type d -exec $libexec_dir/install-directory $dest $libexec_dir {} \;
done