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 ls -d */ > artistdirectories
while read -r artdir; do while read -r artdir; do
# FIXME remove trailing slash
artdir="${artdir%/}"
# change into artist directory
cd "$artdir" cd "$artdir"
# get albums # get albums
ls -d */ > directories ls -d */ > directories
while read -r dir; do while read -r dir; do
# FIXME remove trailing slash
dir="${dir%/}"
# change into directory # change into directory
cd "$dir" cd "$dir"
# create directory in music # create directory in music