X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jenkins-init-scripts%2Fsystem_type.sh;h=c5b141afd47d859d9384915f0247f905c0bd2748;hb=c85a184202430826e3b365884ad1f23bb92dd80b;hp=897e694db520f5f27287442f9d498dec017d024d;hpb=f226a8f74eb66a8ef4b2dabdd6633138152f3251;p=releng%2Fbuilder.git diff --git a/jenkins-init-scripts/system_type.sh b/jenkins-init-scripts/system_type.sh index 897e694db..c5b141afd 100755 --- a/jenkins-init-scripts/system_type.sh +++ b/jenkins-init-scripts/system_type.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # SPDX-License-Identifier: EPL-1.0 ############################################################################## # Copyright (c) 2016 The Linux Foundation and others. @@ -22,7 +22,7 @@ for i in "java-builder,builder" \ "robot,robot" \ "mininet,mininet-ubuntu" do set -- $i - if expr $HOST : ".*$1.*" ; then + if [[ $HOST == *"$1"* ]]; then SYSTEM_TYPE="$2" break fi