Fixed dir_prep link creator

This commit is contained in:
xargon 2022-07-20 09:51:56 +02:00
parent 3ebd74df77
commit f30a5e6e1c

View file

@ -41,7 +41,7 @@ dir_prep() {
# creating the symlink # creating the symlink
echo "linking $real in $symlink" #DEBUG echo "linking $real in $symlink" #DEBUG
mkdir -pv "$(dirname "$symlink")" # creating the full path except the last folder mkdir -pv "$(dirname "$symlink")" # creating the full path except the last folder
ln -sv "$real" "$symlink" ln -svf "$real" "$symlink"
# moving everything from the old folder to the new one, delete the old one # moving everything from the old folder to the new one, delete the old one
if [ -d "$symlink.old" ]; if [ -d "$symlink.old" ];