commit 512e93108e25dd417824cea2563c21f63846c734
parent cc1992d1d0947edd5c7c10b8705a4bc3a3b6d64b
Author: Jake Bauer <jbauer@paritybit.ca>
Date: Sun, 21 Aug 2022 15:03:15 -0400
Fix incorrect titles & descriptions being applied
The title and description variables were not being unset before each
invocation of the build() function so pages would have incorrect titles
and descriptions, since those variables would only be set if they were
not already set (from a Gemini conversion).
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/sbs b/sbs
@@ -149,6 +149,8 @@ genfeed() {
build()
{
for file in "$@"; do
+ unset title
+ unset description
# Stop the filename from being prepended with the path multiple
# times as build() recurses
if ! echo "$file" | grep -q "$cwd"; then
@@ -288,7 +290,7 @@ case "$1" in
echo "v0.5.0" ;
;;
*)
- echo "See sbs(1) for documentation."
+ echo "Usage: sbs <command> [FILE ...]"
;;
esac