Fix pushd/popd for directories
This commit is contained in:
parent
7fec07f6c4
commit
278bf94f8b
@ -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!
|
||||||
|
Loading…
Reference in New Issue
Block a user