cremeaux/run

28 lines
608 B
Plaintext
Raw Permalink Normal View History

2020-09-02 16:54:03 +02:00
#!/bin/bash
# -e Exit immediately if a command exits with a non-zero status.
# -u Treat unset variables as an error when substituting.
set -eu
. ./.env
. ./themes/hugo-theme-lowtech/scripts/run
2020-09-02 16:54:03 +02:00
help() {
help_generic
2020-12-21 11:59:02 +01:00
echo "- ./run favicon 🎨 Création du favicon"
echo
2020-09-02 16:54:03 +02:00
}
favicon() {
# https://stackoverflow.com/questions/39256104/how-to-convert-an-image-file-from-svg-to-a-multi-size-ico-without-blur-sharp
convert -density 300 -define icon:auto-resize=48,32,16 -background none static/icons/blason-512x512.png static/favicon.ico
}
2020-09-02 16:54:03 +02:00
if [ $# -ge 1 ]; then
$@
2020-09-02 16:54:03 +02:00
else
help
fi
end