scripts/do-common.sh

15 lines
260 B
Bash
Raw Permalink 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