Browse Source

Fix exit code for cadence-session-start -s

tags/v0.9.2
parent
commit
57879082d1
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/cadence_session_start.py

+ 2
- 2
src/cadence_session_start.py View File

@@ -234,9 +234,9 @@ if __name__ == '__main__':
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"):


Loading…
Cancel
Save