Fix a packaging bug

Previously, symlinks to directories were followed early
in the bootstrap. This is incorrect behaviour.

While never actually encountered (hence no checksum changes),
this could be a problem.
This commit is contained in:
fosslinux 2023-02-02 15:40:26 +11:00
parent 070e9dacc5
commit 2577d2e704
1 changed files with 2 additions and 1 deletions

View File

@ -22,7 +22,8 @@ get_files() {
fs="${fs} $(echo .[0-z]*)"
fi
for f in ${fs}; do
if [ -d "${f}" ]; then
# Archive symlinks to directories as symlinks
if [ -d "${f}" ] && ! [ -h "${f}" ]; then
cd "${f}"
get_files "${prefix}/${f}"
cd ..