Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 23 lines (20 sloc) 468 Bytes
#!/bin/bash
for file in $@
do
echo "Uploading $file..."
case $file in
*.html )
content_type="Content-Type: text/html"
;;
*.js )
content_type="Content-Type: text/javascript"
;;
*.css )
content_type="Content-Type: text/css"
;;
*.png )
content_type="Content-Type: image/png"
;;
esac
curl --silent -X PUT -H "${content_type}" --data-binary @$file http://localhost:8098/riak/riak-admin/$file;
done