diff options
Diffstat (limited to 'bin/jenkins_node_wrapper.sh')
-rwxr-xr-x | bin/jenkins_node_wrapper.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/jenkins_node_wrapper.sh b/bin/jenkins_node_wrapper.sh index b4706697..b6ea9eb0 100755 --- a/bin/jenkins_node_wrapper.sh +++ b/bin/jenkins_node_wrapper.sh @@ -58,7 +58,9 @@ shift allowed_cmds=() -if [[ "$*" =~ /bin/nc\ localhost\ 4949 ]] ; then +if [[ "$*" =~ /bin/true ]] ; then + exec /bin/true ; croak "Exec failed"; +elif [[ "$*" =~ /bin/nc\ localhost\ 4949 ]] ; then exec /bin/nc localhost 4949 ; croak "Exec failed"; elif [[ "$*" =~ rebootstrap_.* ]] ; then shift |