1
0
mirror of https://github.com/captn3m0/Scripts.git synced 2024-09-20 15:57:23 +00:00
scripts/do-common.sh
2017-09-02 01:52:51 +05:30

15 lines
260 B
Bash
Executable File

#!/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