Allow multiple file arguments

This commit is contained in:
Jaidyn Ann 2021-01-15 08:39:11 -06:00
parent 138ffbbba3
commit 55ea973eac

View File

@ -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