deploy 383 B

12345678910111213
  1. #!/bin/bash
  2. #echo "Deploying source and executable from $2 ..."
  3. echo "Deploying executable $1"
  4. rsync -av --delete -e ssh $2/Debug/$1 pi@192.168.0.7:/opt/coffeepi/Debug
  5. COUNT=$(cat "$2/buildno")
  6. if [ "$1" == "coffeecode" ]; then
  7. echo "Increasing build No.."
  8. echo $(($COUNT+1)) > "$2/buildno"
  9. echo "Current build number is $(($COUNT+1))"
  10. else
  11. echo "Current build number is $COUNT"
  12. fi