sbs

A Simple Blogging System.
git clone https://git.sr.ht/~jbauer/sbs
Log | Files | Refs | README | LICENSE

commit 912365a1aba202f6fc6ad1d11c7bc18cbb5de772
parent 36fa487109e51fca77ea1fad2864a73ef5c47c9a
Author: Jake Bauer <jbauer@paritybit.ca>
Date:   Mon, 14 Feb 2022 23:13:48 -0500

Fix error where mkdir would fail to make new site

The -p argument to mkdir was removed so sbs wouldn't overwrite an
existing site, however, it was then missing a statement to create the
directory for the site since previously -p would handle that.

Diffstat:
Msbs | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sbs b/sbs @@ -39,7 +39,7 @@ if [ "$1" = "new" ]; then printf "**Author:** [%%author] | **Published:** [%%date]\n\n" >> "content/$3" printf "Created: content/%s" "$3" elif [ "$2" = "site" ]; then - mkdir "$3/content/" "$3/static/" "$3/templates/" + mkdir "$3" "$3/content/" "$3/static/" "$3/templates/" touch "$3/static/style.css" # Create template config.ini file printf "siteURL = https://example.com\n" > "$3/config.ini"