Add unknown command handling

This commit is contained in:
Jake Bauer 2022-02-15 01:12:29 -05:00
parent ff2462db20
commit f559095f3a
1 changed files with 3 additions and 0 deletions

3
sbs
View File

@ -59,6 +59,9 @@ if [ "$1" = "new" ]; then
printf '</body>\n' >> "$3/templates/footer.html"
printf '</html>\n' >> "$3/templates/footer.html"
printf "Created: %s\n" "$3"
else
printf "Command '%s' not recognized.\n" "$2"
exit 1
fi
exit 0
fi