From f7681d7233c44c9747b7beb28a2e9cd6c618618e Mon Sep 17 00:00:00 2001 From: Quentin Duchemin Date: Sun, 13 Dec 2020 16:45:49 +0100 Subject: [PATCH] Fix copying config in non-existing folders --- .init_config.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/.init_config.sh b/.init_config.sh index 443419b..59c1885 100755 --- a/.init_config.sh +++ b/.init_config.sh @@ -65,6 +65,7 @@ for f in `find ${CONFIG} -type f -name ${DEST_FILENAME}`; do # This is because if desktop/laptop files exist, they already have a symlink pointing to them at this stage for config_file in `find ${DIR} -maxdepth 1 -mindepth 1 -not \( -name "*.${LAPTOP}" -o -name "*.${DESKTOP}" -o -name "${DEST_FILENAME}" \)`; do # Now copy to destination + sudo mkdir -p ${DEST} check_copy "${config_file}" "sudo cp ${config_file} ${DEST}" "sudo rm ${DEST}/${config_file##*/}" done done