mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2025-03-06 14:27:48 +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" ];
|
if [ -d "$symlink.old" ];
|
||||||
then
|
then
|
||||||
echo "Moving the data from $symlink.old to $real" #DEBUG
|
echo "Moving the data from $symlink.old to $real" #DEBUG
|
||||||
mv -f "$symlink".old/* $real
|
mv -f "$symlink.old"/{.[!.],}* $real
|
||||||
mv -f "$symlink".old/.* $real # Also move hidden files / folders
|
|
||||||
echo "Removing $symlink.old" #DEBUG
|
echo "Removing $symlink.old" #DEBUG
|
||||||
rm -rf "$symlink.old"
|
rm -rf "$symlink.old"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue