From e10abc75ba76cb1167cb34caa0c20d7704eeec25 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 30 Sep 2011 20:27:09 +0200 Subject: [PATCH] Fix multiple jobs parsing from command line --- autodist | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autodist b/autodist index 984bc48..a7aeb62 100755 --- a/autodist +++ b/autodist @@ -173,8 +173,8 @@ for ((i=1; i<=$#; i++)); do fi ;; *) if [ "$AUTOSPEC_ARGS_MODE" != "1" ]; then - JOBNAME[${#TARGET[@]}]="${!i/\#*}" - [ "${!i/*\#}" != "${!i}" ] && JOBVER[${#TARGET[@]}]="+${!i/*\#}" + JOBNAME[${#JOBNAME[@]}]="${!i/\#*}" + [ "${!i/*\#}" != "${!i}" ] && JOBVER[${#JOBNAME[@]}]="+${!i/*\#}" else AUTOSPEC_ARGS="$AUTOSPEC_ARGS ${!i}" fi