commit 0bae1d80d701946ec498a5cb5eaef372960d94e7
parent 7afbde68cac22f2a9f6dce231f1048d87e07d411
Author: Jake Bauer <jbauer@paritybit.ca>
Date: Thu, 9 Feb 2023 22:00:23 -0500
Change pushcmd to pushCommand
Diffstat:
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/sbs b/sbs
@@ -56,7 +56,7 @@ new()
printf "blogDir = blog/\n"
printf "languageCode = en\n"
printf "buildOptions = -Thtml --html-no-skiphtml --html-no-escapehtml\n"
- printf "pushcmd = echo 'No command configured.'\n"
+ printf "pushCommand = echo 'No command configured.'\n"
} > "$3/config.ini"
# Create template header.html file
{ printf '<!DOCTYPE html>\n'
@@ -90,7 +90,7 @@ new()
parse_configuration()
{
- options="siteURL siteName blogDir languageCode buildOptions pushcmd"
+ options="siteURL siteName blogDir languageCode buildOptions pushCommand"
for key in $options; do
value=$(grep "$key" config.ini | cut -d'=' -f2 | xargs)
if [ -n "$value" ]; then
@@ -223,16 +223,14 @@ build()
-e "s/lang=\"\"/lang=\"$languageCode\"/" \
-e "s/content=\"\"/content=\"$description\"/" \
> "static/$subDir/$fileName".html
-
- printf "Created: static%s/%s.html\n" "$subDir" "$fileName"
done
}
# Push the contents of the static/ folder using the configured command
push()
{
- echo "$pushcmd"
- sh -c "$pushcmd"
+ echo "$pushCommand"
+ sh -c "$pushCommand"
}
# Walks up the filesystem to the root of the website so it can be built from