summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/main.go b/main.go
index 8f97dd8..485be83 100644
--- a/main.go
+++ b/main.go
@@ -77,8 +77,8 @@ func doProto(argvProto string) error {
me.sh.GoodExit("doClean() ran")
}
- if argv.Ctime {
- doCtime(pf.Filebase)
+ if argv.Mtime {
+ doMtime(pf.Filebase)
me.sh.GoodExit("doClean() ran")
}
@@ -100,9 +100,8 @@ func doProto(argvProto string) error {
os.Setenv("PROTOBUF_REGRET", "true")
}
- if doCtime(pf.Filebase) {
- log.Info("nothing changed. exit here")
- me.sh.GoodExit("doCtime() ran")
+ if doMtime(pf.Filebase) {
+ me.sh.GoodExit(pf.Filename + " did not change")
} else {
log.Info("ctime check: need to re-run autogenpb")
}