Guest User

Untitled

a guest
Feb 13th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. #
  4. # upload via sftp
  5. #
  6.  
  7. # fill out the following definitions
  8. DEVICE="$1"
  9. ROM=""
  10. USER=""
  11. HOST=""
  12. PASSWORD=""
  13.  
  14. # install sshpass
  15. sudo apt install sshpass -y
  16.  
  17. # upload
  18. export SSHPASS=$PASSWORD
  19. sshpass -e sftp -oBatchMode=no -b - $USER@$HOST << !
  20. put out/target/product/$DEVICE/$ROM*.zip
  21. bye
  22. !
Add Comment
Please, Sign In to add comment