Fix handling of arguments w spaces

This commit is contained in:
Jaidyn Ann 2021-12-06 12:34:40 -06:00
parent 55ea973eac
commit db9b874426

View File

@ -168,12 +168,12 @@ if test -z "$1"; then help; fi
if test ! -e /bin/ffmpeg; then help; fi if test ! -e /bin/ffmpeg; then help; fi
if test "$SONG" -eq 1; then if test "$SONG" -eq 1; then
for song in $@; do for song in "$@"; do
set_song_attrs "$song" set_song_attrs "$song"
done done
fi fi
if test "$ALBUM" -eq 1; then if test "$ALBUM" -eq 1; then
for song in $@; do for song in "$@"; do
set_album_attrs "$@" set_album_attrs "$@"
done done
fi fi