Skip to content

Commit

Permalink
add check for dry-run and compile-only flags
Browse files Browse the repository at this point in the history
  • Loading branch information
iyilmaz24 authored and mrueg committed Feb 18, 2025
1 parent 8d05975 commit f2b2a7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit f2b2a7a

Please sign in to comment.