sysmocom-upload.sh: Make sure that not the wrong dir is synced

This commit is contained in:
Holger Hans Peter Freyther 2013-01-29 15:16:35 +01:00
parent 0b9c954d0b
commit 267d7a4dab
1 changed files with 6 additions and 0 deletions

View File

@ -1,4 +1,10 @@
#!/bin/sh
if [ `pwd` != '/home/vagrant/generic-poky/build' ]; then
echo "Must be called from the sysmoBTS build directory"
exit 0
fi
rsync --delete -avz tmp/deploy/ipk/ generic@sysmocom-downloads:sysmobts/201208-testing/ipk
rsync --delete -avz tmp/deploy/images/ generic@sysmocom-downloads:sysmobts/201208-testing/images
rsync --delete -avz tmp/deploy/tools/ generic@sysmocom-downloads:sysmobts/201208-testing/tools