Skip to content

Commit

Permalink
Fix error with jenkins-agent syntax (jenkinsci#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
felipecrs authored Sep 1, 2021
1 parent 47313b5 commit 946255b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jenkins-agent
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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 "$@"
Expand Down

0 comments on commit 946255b

Please sign in to comment.