all repos — site @ 7f62efe6bc667c7cb11a94f850da2509241d646a

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