Skip to content

Hangover Script Early Exit Condition Wrong #28

@harrisbinkhurram

Description

@harrisbinkhurram

In hangover script (python), it should check if there's a terminal open then exit, where as it checks if there's no session then exit.

Line 15-18

# exit if no sessions with my username are found
output = subprocess.check_output('who')
if 'my_username' not in output:
    sys.exit()

should be

# exit if no sessions with my username are found
output = subprocess.check_output('who')
if 'my_username' in output:
    sys.exit()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions