Fix handling of arguments w spaces
This commit is contained in:
parent
55ea973eac
commit
db9b874426
4
songattr
4
songattr
|
@ -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
|
||||||
|
|
Ŝarĝante…
Reference in New Issue