aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2023-10-14 10:35:28 +0700
committerShulhan <ms@kilabit.info>2023-10-14 10:35:28 +0700
commit46bd8b68dc8c2662618af11e3cf6a69b3194d29d (patch)
tree8e336ea5929b1986ea2c424eb9bcd49864c8514e
parentaa5ec477dceb0283fc1eca05eb4fdd0c8b7d41a1 (diff)
downloadciigo-46bd8b68dc8c2662618af11e3cf6a69b3194d29d.tar.xz
all: make "convert" to always force
Previously, the convert command only check if the markup file is newer than the output file. If the template file updated, it will not re-convert the markup file. This changes fix this by always convert the markup files regarding their output modification times.
-rw-r--r--ciigo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ciigo.go b/ciigo.go
index d782a88..25250da 100644
--- a/ciigo.go
+++ b/ciigo.go
@@ -66,7 +66,7 @@ func Convert(opts *ConvertOptions) (err error) {
return fmt.Errorf(`%s: %w`, logp, err)
}
- converter.convertFileMarkups(fileMarkups, false)
+ converter.convertFileMarkups(fileMarkups, true)
return nil
}