From 7eac4777ef04cc0012f20b416014e3e9e6743dbc Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian Date: Sun, 30 Apr 2023 15:52:59 -0700 Subject: [PATCH] man/fill_template: Use POSIX compatible comparison. Bash supports == comparison, but other /bin/sh implementations may not. --- man/fill_template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man/fill_template b/man/fill_template index 641cab81..63642a39 100644 --- a/man/fill_template +++ b/man/fill_template @@ -2,7 +2,7 @@ d="" [ -z "$SOURCE_DATE_EPOCH" ] || d="--utc --date=@$SOURCE_DATE_EPOCH" -if [ "$2" == "True" ]; then +if [ "$2" = "True" ]; then for i in *.0 ; do sed -e "s/!VERSION!/${1}/g" -e "s/!DATE!/`date $d '+%Y-%m-%d'`/g" < ${i} > ${i%%0}1 done