Remove trailing slash for nicer symlink paths
This commit is contained in:
parent
9cab744773
commit
a3f75914ed
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user