of SSH_ORIGINAL_COMMAND, only the first word is the job name

Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mattia@debian.org>
parent 923d22a2
......@@ -61,7 +61,7 @@ if [ "${0:0:5}" != "/tmp/" ] ; then
if [ -n "$JOB_NAME" ] ; then
WHOAREWE=$JOB_NAME
else
WHOAREWE=${SSH_ORIGINAL_COMMAND}
WHOAREWE=${SSH_ORIGINAL_COMMAND/%\ */}
fi
# abort certain jobs if we know they will fail due to certain bugs…
case $WHOAREWE in
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment