summaryrefslogtreecommitdiffstats
path: root/jjb/yardstick
diff options
context:
space:
mode:
authorchenjiankun <chenjiankun1@huawei.com>2017-08-30 01:15:21 +0000
committerchenjiankun <chenjiankun1@huawei.com>2017-08-30 01:15:21 +0000
commita9fe0fa423ccac7d828574176500815a9dcd83f9 (patch)
treee2eb6e3eb7a55378f98a4c3a2ba914e7ba2ca740 /jjb/yardstick
parent4e9134d73f7f52f10c637636dea2aa9b84b211a6 (diff)
Bugfix: Bad substitution wthen run shell script
When run yardstick-get-k8s-conf.sh, there is an error: /tmp/hudson2171423090360971912.sh: 6: /tmp/hudson2171423090360971912.sh: Bad substitution To solve this problem, we need set using /bin/bash to run script. If we do not set it, it will using /bin/sh by default. Change-Id: Ic3aa58dfad009c42974f98ea4366b6e5f50752ca Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
Diffstat (limited to 'jjb/yardstick')
-rwxr-xr-xjjb/yardstick/yardstick-get-k8s-conf.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/jjb/yardstick/yardstick-get-k8s-conf.sh b/jjb/yardstick/yardstick-get-k8s-conf.sh
index ce1e94dde..e93367f9a 100755
--- a/jjb/yardstick/yardstick-get-k8s-conf.sh
+++ b/jjb/yardstick/yardstick-get-k8s-conf.sh
@@ -1,3 +1,4 @@
+#!/bin/bash
set -e
dest_path="$HOME/admin.conf"