Guest User

Untitled

a guest
May 21st, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. set -e
  4.  
  5. FILE=$(basename $1)
  6.  
  7. aws s3 cp "s3:/"$1 .
  8. nano $FILE
  9.  
  10. read -p "Atualizar no S3? [s/n] " -n 1 -r
  11. echo ""
  12. if [[ $REPLY =~ ^[Ss]$ ]]
  13. then
  14. echo "Enviando arquivo para o S3..."
  15. aws s3 cp $FILE "s3:/"$1
  16. else
  17. echo "Abortando!"
  18. fi
Add Comment
Please, Sign In to add comment