Guest User

Untitled

a guest
Apr 19th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #!/bin/bash
  2. # Exit script instantly if any error is encountered
  3. set -e
  4. function downloadFileFromS3() {
  5. pipenv run aws s3 cp $1 $2
  6. }
  7.  
  8. LOCAL_RUN_SCRIPT=run_script.sh
  9. downloadFileFromS3 $RUN_SCRIPT $LOCAL_RUN_SCRIPT
  10. chmod a+x $LOCAL_RUN_SCRIPT
  11. ./$LOCAL_RUN_SCRIPT
Add Comment
Please, Sign In to add comment