From 30fb39ec8d0d7d638e0a0eed55c8e6d23bc47b26 Mon Sep 17 00:00:00 2001 From: Pavel Lutskov Date: Mon, 18 Jun 2018 15:58:06 +0200 Subject: [PATCH] copyfiles working, upload your key --- pykick/copyfiles.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pykick/copyfiles.sh b/pykick/copyfiles.sh index 4a35ad3..f18f4d6 100755 --- a/pykick/copyfiles.sh +++ b/pykick/copyfiles.sh @@ -2,6 +2,7 @@ # Exit immediately if something fails set -e +repo="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd )" if [ -z "$1" ] then @@ -10,8 +11,7 @@ else nao_ip=$1 fi -destination="$nao_ip:/home/nao/pykick/" +destination="nao@$nao_ip:/home/nao/pykick/" # copy the files with scp -scp -v striker.py utils.py finders.py \ - movements.py imagereaders.py $destination +scp "$repo/"*.py $destination