From 6a84ad07b60933a02066bde3115c53e592309bef Mon Sep 17 00:00:00 2001 From: Dimitri Mazmanov Date: Tue, 31 Jan 2017 14:02:24 +0100 Subject: Extract filename from the path properly Change-Id: Ic1bc0367590b413209dd070041125150a16ab77e Signed-off-by: Dimitri Mazmanov --- tools/keystone/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/keystone') diff --git a/tools/keystone/run.sh b/tools/keystone/run.sh index 433438c..6ece634 100755 --- a/tools/keystone/run.sh +++ b/tools/keystone/run.sh @@ -80,7 +80,7 @@ function run_on_target() { if [ -n "${data}" ]; then # Copy any accompanying data along with the script sshpass -p r00tme ssh 2>/dev/null $ssh_options root@${installer_ip} \ - "ssh $ssh_options $1 \"cd /root/ && cat > ${data}\"" < ${data} &> /dev/null + "ssh $ssh_options $1 \"cd /root/ && cat > $(basename ${data})\"" < ${data} &> /dev/null fi # Set the rights and execute sshpass -p r00tme ssh 2>/dev/null $ssh_options root@${installer_ip} \ -- cgit 1.2.3-korg