deploy 451 B

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