autodist: also filter '@' characters when matching job names
This commit is contained in:
parent
a52cecc4c5
commit
47661108aa
2
autodist
2
autodist
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user