From 877657a5f54fb7a49d2f423fb2080abcb2e6f2e0 Mon Sep 17 00:00:00 2001 From: Dimitri Mazmanov Date: Tue, 31 Jan 2017 13:45:43 +0100 Subject: Fix export in the run.sh Change-Id: I69075bf7ad5f9900ee4e47596dcb61c85f70d617 Signed-off-by: Dimitri Mazmanov --- tools/keystone/run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/keystone/run.sh b/tools/keystone/run.sh index 8fe933f..a4dca82 100755 --- a/tools/keystone/run.sh +++ b/tools/keystone/run.sh @@ -20,7 +20,7 @@ set -o pipefail INSTALLER_IP=10.20.0.2 # Runs on the jumphost # if running as part of Jenkins job, read and create the files from/in WORKSPACE -WORKSPACE=${WORKSPACE:-"/root"} +export WORKSPACE=${WORKSPACE:-"/root"} usage() { echo "usage: $0 -a -t (controller|compute) -r -d -o " >&2 @@ -94,7 +94,7 @@ function run_on_target() { if [ -n "${output}" ]; then #Fetch output file sshpass -p r00tme ssh 2>/dev/null $ssh_options root@${installer_ip} \ - "ssh $ssh_options $1 \"cd /root/ && cat ${output}\"" > "${WORKSPACE}/${output}" + "ssh $ssh_options $1 \"cat /root/${output}\"" > ${WORKSPACE}/${output} fi } -- cgit 1.2.3-korg