Fix copying config in non-existing folders

master
Quentin Duchemin 2020-12-13 16:45:49 +01:00
parent dcb715effc
commit f7681d7233
Signed by: Chosto
GPG Key ID: 0547178FEEDE7D6B
1 changed files with 1 additions and 0 deletions

View File

@ -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