copyfiles working, upload your key

This commit is contained in:
2018-06-18 15:58:06 +02:00
parent e11f268508
commit 30fb39ec8d

View File

@@ -2,6 +2,7 @@
# Exit immediately if something fails # Exit immediately if something fails
set -e set -e
repo="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd )"
if [ -z "$1" ] if [ -z "$1" ]
then then
@@ -10,8 +11,7 @@ else
nao_ip=$1 nao_ip=$1
fi fi
destination="$nao_ip:/home/nao/pykick/" destination="nao@$nao_ip:/home/nao/pykick/"
# copy the files with scp # copy the files with scp
scp -v striker.py utils.py finders.py \ scp "$repo/"*.py $destination
movements.py imagereaders.py $destination