Fixed dir_prep link creator

Merge pull request #90 from XargonWan/cooker-0.4.5b
This commit is contained in:
XargonWan 2022-07-20 09:53:28 +02:00 committed by GitHub
commit b2517b9e37

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" ];