lowtechweb/run

26 lines
703 B
Plaintext
Raw Normal View History

#!/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
START=`date +%s`
echo
echo "┌┐░░░░░░┌──┐░░┌┐░┌┬─┬┐░┌┐░"
echo "││┌─┬┬┬┐└┐┌┴┬─┤└┐││││├─┤└┐"
echo "│└┤┼││││░││┴┤─┤│││││││┴┤┼│"
echo "└─┴─┴──┘░└┴─┴─┴┴┘└─┴─┴─┴─┘"
echo
if [ $# -ge 1 ] && [ $1 == "dev" ]; then
hugo server -D
else
echo "Commands:"
echo "- ./run dev: Start development"
echo
fi
END=`date +%s`
echo "✨ Done in $((END-START))s"