From: MatthewOwens Date: Sun, 19 Jul 2020 10:33:04 +0000 (+0100) Subject: updated post_title script so that only leading spaces are removed X-Git-Url: https://git.owens.tech///git?a=commitdiff_plain;h=a3c9e3c23bdc22392d98b8dc5d261dde3ad7cc01;p=website.git updated post_title script so that only leading spaces are removed --- diff --git a/scripts/post_title.sh b/scripts/post_title.sh index 19ca5d5..cd5d352 100755 --- a/scripts/post_title.sh +++ b/scripts/post_title.sh @@ -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 "$t"