all repos — site @ eb5ceb8bad0a830d8f6f0b952e745147eec092f6

source for my site, found at icyphox.sh

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