Code Review
/
releng.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
4e9134d
)
Bugfix: Bad substitution wthen run shell script
43/40643/1
author
chenjiankun
<chenjiankun1@huawei.com>
Wed, 30 Aug 2017 01:15:21 +0000
(
01:15
+0000)
committer
chenjiankun
<chenjiankun1@huawei.com>
Wed, 30 Aug 2017 01:15:21 +0000
(
01:15
+0000)
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>
jjb/yardstick/yardstick-get-k8s-conf.sh
patch
|
blob
|
history
diff --git
a/jjb/yardstick/yardstick-get-k8s-conf.sh
b/jjb/yardstick/yardstick-get-k8s-conf.sh
index
ce1e94d
..
e93367f
100755
(executable)
--- 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"