summaryrefslogtreecommitdiffstats
path: root/tools/keystone/run.sh
diff options
context:
space:
mode:
authorDimitri Mazmanov <dimitri.mazmanov@ericsson.com>2017-01-31 14:20:37 +0100
committerDimitri Mazmanov <dimitri.mazmanov@ericsson.com>2017-01-31 14:23:26 +0100
commit80b2b33036e3afe41ad0573f9ca7cf6af38cf767 (patch)
treeab84ef09d43540bef0e1e2c690865450849d7d9b /tools/keystone/run.sh
parent6a84ad07b60933a02066bde3115c53e592309bef (diff)
extract filename
Change-Id: I1393da09fef7ac3650a74c95483736b2c5aaff65 Signed-off-by: Dimitri Mazmanov <dimitri.mazmanov@ericsson.com>
Diffstat (limited to 'tools/keystone/run.sh')
-rwxr-xr-xtools/keystone/run.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/keystone/run.sh b/tools/keystone/run.sh
index 6ece634..11c6773 100755
--- a/tools/keystone/run.sh
+++ b/tools/keystone/run.sh
@@ -79,8 +79,9 @@ function run_on_target() {
"ssh $ssh_options $1 \"cd /root/ && cat > ${runnable}\"" < ${runnable} &> /dev/null
if [ -n "${data}" ]; then
# Copy any accompanying data along with the script
+ fname=$(basename ${data})
sshpass -p r00tme ssh 2>/dev/null $ssh_options root@${installer_ip} \
- "ssh $ssh_options $1 \"cd /root/ && cat > $(basename ${data})\"" < ${data} &> /dev/null
+ "ssh $ssh_options $1 \"cd /root/ && cat > ${fname}\"" < ${data} &> /dev/null
fi
# Set the rights and execute
sshpass -p r00tme ssh 2>/dev/null $ssh_options root@${installer_ip} \