Remove trailing slash for nicer symlink paths

This commit is contained in:
exu 2024-01-27 21:42:10 +01:00
parent 9cab744773
commit a3f75914ed

View File

@ -11,10 +11,15 @@ cd "$HOME/Nextcloud/MusikRaw"
ls -d */ > artistdirectories
while read -r artdir; do
# FIXME remove trailing slash
artdir="${artdir%/}"
# change into artist directory
cd "$artdir"
# get albums
ls -d */ > directories
while read -r dir; do
# FIXME remove trailing slash
dir="${dir%/}"
# change into directory
cd "$dir"
# create directory in music