Add failsafe

This commit is contained in:
RealStickman 2021-01-26 08:40:25 +01:00
parent c9abd61369
commit 9ac8c1af7c

View File

@ -22,7 +22,10 @@ while read -r dir; do
fi
# make symbolic link to music
ln -svf "$HOME/MusikRaw/$dir/normalized/"* "$HOME/Musik/$dir/"
# if the "normalized" directory exists, links are created
if [[ -d "normalized" ]]; then
ln -svf "$HOME/MusikRaw/$dir/normalized/"* "$HOME/Musik/$dir/"
fi
# go back to music raw
cd "$HOME/MusikRaw"
done < directories