1
0
mirror of https://github.com/golang/go synced 2024-11-15 00:40:31 -07:00
Change-Id: Ib05189051128a623105fb42152e8ea98d6cc5c36
This commit is contained in:
qiulaidongfeng 2024-04-14 10:41:02 +08:00
parent 70a88a6c9b
commit 9567536651

View File

@ -93,7 +93,7 @@ func runVersion(ctx context.Context, cmd *base.Command, args []string) {
scanDir(arg)
} else {
ok := scanFile(arg, info, true)
if !ok {
if !ok && *versionM {
base.SetExitStatus(1)
}
}