mirror of
https://github.com/kovetskiy/mark.git
synced 2025-06-07 23:12:42 +08:00
add check for dry-run and compile-only flags
This commit is contained in:
parent
8d05975142
commit
f2b2a7a309
2
main.go
2
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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user