32 lines
680 B
Bash
Executable File
32 lines
680 B
Bash
Executable File
#!/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
|
|
|
|
help() {
|
|
echo
|
|
echo "💡 Aide 💡"
|
|
echo "----------"
|
|
echo
|
|
echo "Commandes :"
|
|
echo "- ./run favicon 🎨 Création du favicon"
|
|
help_generic
|
|
}
|
|
|
|
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
|
|
}
|
|
|
|
if [ $# -ge 1 ]; then
|
|
$@
|
|
else
|
|
help
|
|
fi
|
|
|
|
end
|