summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri Mazmanov <dimitri.mazmanov@ericsson.com>2017-01-31 14:02:24 +0100
committerDimitri Mazmanov <dimitri.mazmanov@ericsson.com>2017-01-31 14:02:24 +0100
commit6a84ad07b60933a02066bde3115c53e592309bef (patch)
treed930ed464aa3825064b271aab64dfe9b309e9ee1
parente5385c4d1a709a6eb25144340bd3ca872c6ae33e (diff)
Extract filename from the path properly
Change-Id: Ic1bc0367590b413209dd070041125150a16ab77e Signed-off-by: Dimitri Mazmanov <dimitri.mazmanov@ericsson.com>
-rwxr-xr-xtools/keystone/run.sh2
1 files changed, 1 insertions, 1 deletions
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} \