updated post_title script so that only leading spaces are removed
authorMatthewOwens <matthew@owens.tech>
Sun, 19 Jul 2020 10:33:04 +0000 (11:33 +0100)
committerMatthewOwens <matthew@owens.tech>
Sun, 19 Jul 2020 10:33:04 +0000 (11:33 +0100)
scripts/post_title.sh

index 19ca5d5..cd5d352 100755 (executable)
@@ -4,7 +4,7 @@ if [ $# -ne 1 ]; then
        t="fallback title"
 else
        t=$(sed -rn 's/^#([^#])/\1/p' $1)
-       t=$(echo $t | sed 's/ //g')
+       t=$(echo $t | sed 's/^ //g')
 fi
 
 echo "<title>$t</title>"