Something went wrong. Try again.
Mirror of my GitHub Pages site www.spenser.black
Something went wrong. Try again.
396 B · 15 lines
Shell
at main
12345678910111213141516#!/bin/shcommand_exists() { command -v "$1" > /dev/null 2>&1}
if ! command_exists convert || ! command_exists inkscape; then echo "ImageMagick and Inkscape is required." 1>&2 exit 1fi
SCRIPT="$(readlink -f "$0")"ROOT="$(dirname "$(dirname "$SCRIPT")")"cd "$ROOT"
convert -density 256x256 -background black public/favicon.svg -define icon:auto-resize=16,32,48,64,256 public/favicon.ico