bin/reup.sh (view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13
#!/usr/bin/env bash export NO_CP=1 for img in static/img/*; do printf "uploading... $img: " u="$(~/bin/up $img)" printf "$u\n" new="![]("$u")" old="$img" printf "replacing $old with $new... " bin/replace "$old" "$new" printf "done\n" done