summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2014-09-30 12:26:01 +0200
committerJonas Smedegaard <dr@jones.dk>2014-09-30 12:26:01 +0200
commit4c01f159cb3d7cb961cbe85d200d1d25386989e4 (patch)
tree57faa517e22eafd3aca8924fa9ac4d1d9df95609
parent8bfcd96c580f5cbfec2f25021451184638caa8f7 (diff)
Fix resolve first (not last) input.
-rwxr-xr-xlocalvideowebencode2
1 files changed, 1 insertions, 1 deletions
diff --git a/localvideowebencode b/localvideowebencode
index f3e80a7..8befac3 100755
--- a/localvideowebencode
+++ b/localvideowebencode
@@ -156,7 +156,7 @@ melt_recent=$(melt -query filter=loudness | grep -qi R128 && echo yes)
# sanitize infiles
infiles=$*
-infile_first=$(perl -e 'print pop @ARGV' $infiles)
+infile_first=$(perl -e 'print shift @ARGV' $infiles)
[ -e "$infile_first" ] || exit1 "Cannot read first input file \"$infile_first\"!"
# resolve stem and title (if not explicitly set)