1
0
mirror of https://github.com/captn3m0/Scripts.git synced 2024-07-06 05:09:34 +00:00
scripts/do-common.sh

15 lines
260 B
Bash
Raw Normal View History

2017-09-01 20:22:51 +00:00
#!/bin/bash
# Sets the correct environment variables
# And then calls the corresponding s3-{method} script
readonly DO_SCRIPT_NAME="$(basename $0)"
METHOD=$(echo $DO_SCRIPT_NAME | cut -c4-)
case $METHOD in
get ) s3-get $@
;;
put ) s3-put @?
;;
esac