Skip to content

Commit 145c4d3

Browse files
author
Vladimir Kotal
committed
fix logic
1 parent ee3b05e commit 145c4d3

File tree

1 file changed

+2
-2
lines changed
  • opengrok-tools/src/main/python/opengrok_tools/utils

1 file changed

+2
-2
lines changed

opengrok-tools/src/main/python/opengrok_tools/utils/command.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,13 +386,13 @@ def getretcode(self):
386386
return self.returncode
387387

388388
def getoutputstr(self):
389-
if self.state != Command.FINISHED:
389+
if self.state == Command.FINISHED:
390390
return "".join(self.out).strip()
391391
else:
392392
return None
393393

394394
def getoutput(self):
395-
if self.state != Command.FINISHED:
395+
if self.state == Command.FINISHED:
396396
return self.out
397397
else:
398398
return None

0 commit comments

Comments
 (0)