autodist: also filter '@' characters when matching job names

This commit is contained in:
Silvan Calarco 2013-05-21 12:23:05 +02:00
parent a52cecc4c5
commit 47661108aa

View File

@ -393,7 +393,7 @@ get_job_vector() {
local JTARGET=${1/\/*} local JTARGET=${1/\/*}
local JPKG= local JPKG=
[ "$JTARGET" != "$1" ] && JPKG="${1/*\/}" [ "$JTARGET" != "$1" ] && JPKG="${1/*\/}"
local JNAME=`echo $JTARGET | tr - _ | tr . _` local JNAME=`echo $JTARGET | tr - _ | tr . _ | tr @ _`
if [[ ${JNAME:0:1} =~ [0-9] ]]; then if [[ ${JNAME:0:1} =~ [0-9] ]]; then
# prepend a underscore to job names starting with a number (e.g. 54321) # prepend a underscore to job names starting with a number (e.g. 54321)
JNAME="_$JNAME" JNAME="_$JNAME"