Add failsafe
This commit is contained in:
parent
c9abd61369
commit
9ac8c1af7c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user