diff options
author | Michael Adam <obnox@samba.org> | 2020-03-20 17:30:39 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2020-03-20 17:42:56 +0100 |
commit | c2e9d2881588bee65e0f63d98cb79f3a72d12163 (patch) | |
tree | b5f40a41afddb444b866265ecbf674e1f91d3a88 | |
parent | 6a7606131148a94ba211aaee0b4365c8b81c97ae (diff) | |
download | samba-integration-c2e9d2881588bee65e0f63d98cb79f3a72d12163.tar.gz samba-integration-c2e9d2881588bee65e0f63d98cb79f3a72d12163.tar.xz samba-integration-c2e9d2881588bee65e0f63d98cb79f3a72d12163.zip |
centos-ci: bootstrap.sh: small fix.
If more than one variable is passed, then the bootstrap.sh errors with
something like
"/bootstrap.sh: line 7: [: ghprbPullId=8: binary operator expected"
Making this safer.
Signed-off-by: Michael Adam <obnox@samba.org>
-rwxr-xr-x | bootstrap.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bootstrap.sh b/bootstrap.sh index 50e8673..894220d 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -4,7 +4,7 @@ set -e set -x EXEC_BIN="$(basename $1)" scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no "$1" "root@$(cat $WORKSPACE/hosts):$EXEC_BIN" -if [ -z $2 ]; +if [ -z "$2" ]; then ssh -t -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no "root@$(cat $WORKSPACE/hosts)" "./$EXEC_BIN" else |