diff --git a/jenkins-agent b/jenkins-agent old mode 100644 new mode 100755 index 5a0860711..a6501cf3b --- 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 "$@"