From 2577d2e70458307d7050002909e04fe5ad2c2d03 Mon Sep 17 00:00:00 2001 From: fosslinux Date: Thu, 2 Feb 2023 15:40:26 +1100 Subject: [PATCH] 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. --- sysa/helpers.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sysa/helpers.sh b/sysa/helpers.sh index 526fc5d..af7f115 100755 --- a/sysa/helpers.sh +++ b/sysa/helpers.sh @@ -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 ..