Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

Commit

Permalink
Fix exit code for cadence-session-start -s
Browse files Browse the repository at this point in the history
  • Loading branch information
t-mw authored and falkTX committed May 10, 2020
1 parent bf0869c commit 5787908
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cadence_session_start.py
Expand Up @@ -234,9 +234,9 @@ def printVersion():
elif arg == "--reset":
forceReset()
elif arg in ("--system-start", "--system-start-desktop"):
sys.exit(startSession(True, arg == "--system-start-desktop"))
sys.exit(0 if startSession(True, arg == "--system-start-desktop") else 1)
elif arg in ("-s", "--s", "-start", "--start"):
sys.exit(startSession(False, False))
sys.exit(0 if startSession(False, False) else 1)
elif arg in ("-h", "--h", "-help", "--help"):
printHelp(cmd)
elif arg in ("-v", "--v", "-version", "--version"):
Expand Down

0 comments on commit 5787908

Please sign in to comment.