cremeaux/run

32 lines
680 B
Plaintext
Raw 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() {
echo
echo "💡 Aide 💡"
echo "----------"
echo
echo "Commandes :"
echo "- ./run favicon 🎨 Création du favicon"
help_generic
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