mirror of
https://github.com/captn3m0/Scripts.git
synced 2024-09-27 22:22:53 +00:00
15 lines
260 B
Bash
15 lines
260 B
Bash
|
#!/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
|