Allow multiple file arguments
This commit is contained in:
parent
138ffbbba3
commit
55ea973eac
14
songattr
14
songattr
|
@ -164,8 +164,16 @@ done
|
||||||
|
|
||||||
shift $(($OPTIND - 1))
|
shift $(($OPTIND - 1))
|
||||||
|
|
||||||
if test -z "$@"; then help; fi
|
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 set_song_attrs "$@"; fi
|
if test "$SONG" -eq 1; then
|
||||||
if test "$ALBUM" -eq 1; then set_album_attrs "$@"; fi
|
for song in $@; do
|
||||||
|
set_song_attrs "$song"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
if test "$ALBUM" -eq 1; then
|
||||||
|
for song in $@; do
|
||||||
|
set_album_attrs "$@"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
Ŝarĝante…
Reference in New Issue