Made update script more portable

This commit is contained in:
Krateng 2019-10-16 15:24:07 +02:00
parent 4ffeb9eae2
commit a8a15826c3
2 changed files with 3 additions and 1 deletions

3
maloja
View File

@ -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") + ")")

View File

@ -1 +1,2 @@
#!/bin/sh
pip3 install -r requirements.txt --upgrade --no-cache-dir