add check for dry-run and compile-only flags

This commit is contained in:
iyz 2025-02-18 17:30:49 -05:00 committed by Manuel Rüger
parent 8d05975142
commit f2b2a7a309

View File

@ -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",