Created
May 1, 2014 02:09
-
-
Save terryoy/8d4c24e8de2a65ec347b to your computer and use it in GitHub Desktop.
aliyun-oss-tools
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# it depends on aliyun-oss SDK here | |
# http://help.aliyun.com/view/13438815.html | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# set bucket here | |
bucket=clebadge-dev | |
for filename in `ls $1` | |
do | |
osscmd put $1$filename oss://$bucket/$1$filename | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment