From c2e9d2881588bee65e0f63d98cb79f3a72d12163 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Fri, 20 Mar 2020 17:30:39 +0100 Subject: 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 --- bootstrap.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit