From 79b2d0582497ccf9eb7fa51937b00414422b1641 Mon Sep 17 00:00:00 2001 From: Krateng Date: Sat, 16 Feb 2019 21:04:13 +0100 Subject: [PATCH] Fixed update bug --- maloja | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/maloja b/maloja index 83874a6..0f29f5f 100755 --- a/maloja +++ b/maloja @@ -4,6 +4,7 @@ import subprocess import sys import signal import os +import stat neededmodules = [ @@ -100,7 +101,7 @@ def update(): shutil.rmtree("./maloja-master") print("Done!") - os.chmod("maloja",stat.S_IXUSR) + os.chmod("./maloja",os.stat("./maloja").st_mode | stat.S_IXUSR) if stop(): start() #stop returns whether it was running before, in which case we restart it