From f00d79f54086f7def49d7c6f3d1d911687faeb53 Mon Sep 17 00:00:00 2001 From: Felipe Santos Date: Wed, 1 Sep 2021 10:53:35 -0300 Subject: [PATCH] Fix error with jenkins-agent syntax (#239) --- jenkins-agent | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 jenkins-agent diff --git a/jenkins-agent b/jenkins-agent old mode 100644 new mode 100755 index 5a086071..a6501cf3 --- a/jenkins-agent +++ b/jenkins-agent @@ -37,7 +37,7 @@ # the agent skips connecting to an HTTP(S) port for connection info. # * JENKINS_PROTOCOLS: Specify the remoting protocols to attempt when instanceIdentity is provided. -if [ $# -eq 1 ] && [ "${1#-}" == "$1" ] ; then +if [ $# -eq 1 ] && [ "${1#-}" = "$1" ] ; then # if `docker run` only has one arguments and it is not an option as `-help`, we assume user is running alternate command like `bash` to inspect the image exec "$@"