From a8a15826c360c19cdfbd2bb355301f39075c4d7c Mon Sep 17 00:00:00 2001 From: Krateng Date: Wed, 16 Oct 2019 15:24:07 +0200 Subject: [PATCH] Made update script more portable --- maloja | 3 ++- update_requirements.sh | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/maloja b/maloja index 83899b3..774ea71 100755 --- a/maloja +++ b/maloja @@ -296,9 +296,10 @@ def update(): print("Done!") os.chmod("./maloja",os.stat("./maloja").st_mode | stat.S_IXUSR) + os.chmod("./update_requirements.sh",os.stat("./update_requirements.sh").st_mode | stat.S_IXUSR) try: - returnval = os.system("bash update_requirements.sh") + returnval = os.system("./update_requirements.sh") assert returnval == 0 except: print("Make sure to update required modules! (" + yellow("bash update_requirements.sh") + ")") diff --git a/update_requirements.sh b/update_requirements.sh index 6e346b8..6da8554 100644 --- a/update_requirements.sh +++ b/update_requirements.sh @@ -1 +1,2 @@ +#!/bin/sh pip3 install -r requirements.txt --upgrade --no-cache-dir