commit 597c9a998cc850a353896336ed08346afb6c6c91
parent cf522f8b25b68b93fb3027c89a46a68b918b473c
Author: Solene Rapenne <solene@perso.pw>
Date: Mon, 15 Jun 2020 13:10:11 +0200
Fix symbolic links not being copied. Patch from Molly Miller
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drist b/drist
@@ -55,7 +55,7 @@ copy_files() {
if [ -f "$LIST" ]
then
printf 'Copying files from folder "%s":\n' "$1"
- find "${1}"/ -type f | cut -d '/' -f 2- | tee "${LIST}" | sed 's/^/ \//'
+ find "${1}"/ -type f -or -type l | cut -d '/' -f 2- | tee "${LIST}" | sed 's/^/ \//'
if [ "$SIMULATE" -ne 1 ]
then
rsync -e "ssh $SSH_PARAMS" --rsync-path="${EXEC} rsync" -lD --files-from="${LIST}" "${1}/" "${2}":/