From f2b2a7a309b3ffdebd889eaf895ef9bce25114a2 Mon Sep 17 00:00:00 2001 From: iyz Date: Tue, 18 Feb 2025 17:30:49 -0500 Subject: [PATCH] add check for dry-run and compile-only flags --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 707b5a5..193e568 100644 --- a/main.go +++ b/main.go @@ -286,7 +286,7 @@ func RunMark(cCtx *cli.Context) error { target := processFile(file, api, cCtx, creds.PageID, creds.Username) - if target != nil { // on dry-run or compile-only, the target is nil + if target != nil && !(cCtx.Bool("dry-run") || cCtx.Bool("compile-only")) { // on dry-run or compile-only, the target is nil log.Infof( nil, "page successfully updated: %s",