From cec9321bbada463eaf4440c8c44ee75608752abe Mon Sep 17 00:00:00 2001 From: icenine451 Date: Tue, 10 Jan 2023 15:37:37 -0500 Subject: [PATCH] A better solution to moving hidden dirs --- functions.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/functions.sh b/functions.sh index e4a6fe78..29de20bc 100644 --- a/functions.sh +++ b/functions.sh @@ -524,8 +524,7 @@ dir_prep() { if [ -d "$symlink.old" ]; then echo "Moving the data from $symlink.old to $real" #DEBUG - mv -f "$symlink".old/* $real - mv -f "$symlink".old/.* $real # Also move hidden files / folders + mv -f "$symlink.old"/{.[!.],}* $real echo "Removing $symlink.old" #DEBUG rm -rf "$symlink.old" fi