Fix pushd/popd for directories

This commit is contained in:
exu 2024-06-23 12:03:06 +02:00
parent 7fec07f6c4
commit 278bf94f8b

View File

@ -14,7 +14,7 @@ for artdir in */; do
# FIXME remove trailing slash # FIXME remove trailing slash
artdir="${artdir%/}" artdir="${artdir%/}"
# change into artist directory # change into artist directory
cd "$artdir" pushd "$artdir"
for dir in */; do for dir in */; do
# FIXME remove trailing slash # FIXME remove trailing slash
@ -64,16 +64,11 @@ for artdir in */; do
ln -svf "$HOME/Nextcloud/MusikRaw/${artdir}/$dir/normalized/"* "$HOME/Musik/${artdir}/$dir/" ln -svf "$HOME/Nextcloud/MusikRaw/${artdir}/$dir/normalized/"* "$HOME/Musik/${artdir}/$dir/"
fi fi
fi fi
done
popd popd
done done
popd
# go back to music raw
cd "$HOME/Nextcloud/MusikRaw/$artdir"
done
cd "$HOME/Nextcloud/MusikRaw"
done done
popd popd
echo Finished! echo Finished!