Fix multiple jobs parsing from command line

This commit is contained in:
Silvan Calarco 2011-09-30 20:27:09 +02:00
parent 7ea9d02c39
commit e10abc75ba

View File

@ -173,8 +173,8 @@ for ((i=1; i<=$#; i++)); do
fi fi
;; ;;
*) if [ "$AUTOSPEC_ARGS_MODE" != "1" ]; then *) if [ "$AUTOSPEC_ARGS_MODE" != "1" ]; then
JOBNAME[${#TARGET[@]}]="${!i/\#*}" JOBNAME[${#JOBNAME[@]}]="${!i/\#*}"
[ "${!i/*\#}" != "${!i}" ] && JOBVER[${#TARGET[@]}]="+${!i/*\#}" [ "${!i/*\#}" != "${!i}" ] && JOBVER[${#JOBNAME[@]}]="+${!i/*\#}"
else else
AUTOSPEC_ARGS="$AUTOSPEC_ARGS ${!i}" AUTOSPEC_ARGS="$AUTOSPEC_ARGS ${!i}"
fi fi