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