A better solution to moving hidden dirs

This commit is contained in:
icenine451 2023-01-10 15:37:37 -05:00
parent f4953a1554
commit cec9321bba

View file

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