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

Commit

Permalink
removed brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
ktinkerer committed May 17, 2017
1 parent 36bb495 commit 8f7496a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/action.py
Expand Up @@ -206,10 +206,10 @@ def __init__(self, say, command):
self.command = command

def run(self, voice_command):
if (self.command == "shutdown"):
if self.command == "shutdown":
self.say("Shutting down, goodbye")
subprocess.call("sudo shutdown now", shell=True)
elif (self.command == "reboot"):
elif self.command == "reboot":
self.say("Rebooting")
subprocess.call("sudo shutdown -r now", shell=True)
else:
Expand Down

0 comments on commit 8f7496a

Please sign in to comment.