From 376879017c9731d0228a9ce1c835b6d1762efbe2 Mon Sep 17 00:00:00 2001 From: Ceda EI Date: Fri, 24 May 2019 16:17:50 +0530 Subject: [PATCH] Remove file check in background.py --- background.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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")