mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Made update script more portable
This commit is contained in:
parent
4ffeb9eae2
commit
a8a15826c3
3
maloja
3
maloja
@ -296,9 +296,10 @@ def update():
|
|||||||
print("Done!")
|
print("Done!")
|
||||||
|
|
||||||
os.chmod("./maloja",os.stat("./maloja").st_mode | stat.S_IXUSR)
|
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:
|
try:
|
||||||
returnval = os.system("bash update_requirements.sh")
|
returnval = os.system("./update_requirements.sh")
|
||||||
assert returnval == 0
|
assert returnval == 0
|
||||||
except:
|
except:
|
||||||
print("Make sure to update required modules! (" + yellow("bash update_requirements.sh") + ")")
|
print("Make sure to update required modules! (" + yellow("bash update_requirements.sh") + ")")
|
||||||
|
@ -1 +1,2 @@
|
|||||||
|
#!/bin/sh
|
||||||
pip3 install -r requirements.txt --upgrade --no-cache-dir
|
pip3 install -r requirements.txt --upgrade --no-cache-dir
|
||||||
|
Loading…
Reference in New Issue
Block a user