From f4da9d25ca6de081f32f7b5108e491495c0e0d53 Mon Sep 17 00:00:00 2001 From: falkTX Date: Tue, 29 Aug 2023 15:56:02 +0200 Subject: [PATCH] Fix man/fill_template for waf clean Signed-off-by: falkTX --- man/fill_template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man/fill_template b/man/fill_template index 368cb1b0e..619477f34 100644 --- a/man/fill_template +++ b/man/fill_template @@ -2,7 +2,7 @@ d="" [ -z "$SOURCE_DATE_EPOCH" ] || d=--date=@$SOURCE_DATE_EPOCH -if [ "$2" == "True" ]; then +if [ -n "$2" ] && [ "$2" = "True" ]; then for i in *.0 ; do sed -e "s/!VERSION!/${1}/g" -e "s/!DATE!/`date $d '+%B %Y'`/g" < ${i} > ${i%%0}1 done