Advertisement
Guest User

Untitled

a guest
Feb 8th, 2022
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.40 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. file=capture$(date +"%Y-%m-%d-%H.%M.%S").png
  4.  
  5. localfolder=~/Desktop
  6. cloudfolder=/mnt/nfs/nonas-web/vrac
  7. myurl="http://nonas.ugo235.fr/vrac/$file"
  8.  
  9. screencapture -i -P ${localfolder}/${file}
  10.  
  11. echo "Upload to the cloud (y/n) ?"
  12. read reponse
  13. if [ "$reponse" = "y" ] ; then
  14.     mv ${localfolder}/$file $cloudfolder
  15.     echo "$myurl" | pbcopy
  16.     echo "--> $myurl copied to the clipboard"
  17. fi
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement