mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-22 14:05:39 +00:00
A better solution to moving hidden dirs
This commit is contained in:
parent
f4953a1554
commit
cec9321bba
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue