Skip to content

Commit

Permalink
enable uploading in upload-to-s3
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonjs committed Dec 21, 2014
1 parent 4ae843a commit eebc711
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions upload-to-s3
Expand Up @@ -6,8 +6,6 @@ function filesize() {
stat "$1" | cut -d' ' -f8
}

touch ~/wtf

big_size=$((512 * 1024))
max_size=$((2 * 1024 * 1024))

Expand All @@ -31,6 +29,6 @@ if [[ $(filesize "$img_path") -gt $big_size ]]; then
fi
fi
filename=$(basename "$img_path")
# s3cmd put "$img_path" s3://static.samhuri.net/"$filename"
s3cmd put "$img_path" s3://static.samhuri.net/"$filename"
ruby -rerb -e "puts 'http://static.samhuri.net/' + ERB::Util.url_encode('$filename')"
ruby -rerb -e "print 'http://static.samhuri.net/' + ERB::Util.url_encode('$filename')" | pbcopy

0 comments on commit eebc711

Please sign in to comment.