From c38e3a10b99fbc82e4571fbcd017a3d3acac606c Mon Sep 17 00:00:00 2001 From: Quentin Duchemin Date: Tue, 14 May 2024 17:20:58 +0200 Subject: [PATCH] Don't expand symlinks when copying external files --- .config/bootstrap/config_common | 1 + .init_config.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.config/bootstrap/config_common b/.config/bootstrap/config_common index 9d87178..c582ff4 100644 --- a/.config/bootstrap/config_common +++ b/.config/bootstrap/config_common @@ -94,6 +94,7 @@ rsync signal-desktop stylua telegram-desktop +texlive-binextra tectonic terminator thunderbird diff --git a/.init_config.sh b/.init_config.sh index 85fa5f5..9789670 100755 --- a/.init_config.sh +++ b/.init_config.sh @@ -185,7 +185,7 @@ for f in `find ${CONFIG} -type f -name ${DEST_FILENAME}`; do # Get all files, either regular files or symlinks, which are not the destination file nor specific desktop/laptop files # This is because if desktop/laptop files exist, they already have a symlink pointing to them at this stage # We want to get the path relative to the directory we are searching in, so subfolders are kept when copying - for config_file in `find ${DIR} -regextype posix-extended -mindepth 1 \( -type f -o -type l \) -not \( -regex "${ENV_EXT_REGEXP}" -o -name "${DEST_FILENAME}" \) -exec realpath --relative-to ${DIR} {} \;`; do + for config_file in `find ${DIR} -regextype posix-extended -mindepth 1 \( -type f -o -type l \) -not \( -regex "${ENV_EXT_REGEXP}" -o -name "${DEST_FILENAME}" \) -exec realpath -s --relative-to ${DIR} {} \;`; do # If we have to copy to a subfolder, extract it if echo ${config_file} | grep -q '/'; then subfolder=${config_file%/*}