Skip to content

Commit

Permalink
Endre rekkefølge slik at den ikke skriver til VERSION før den faktisk…
Browse files Browse the repository at this point in the history
… kjører
  • Loading branch information
choffa committed Oct 2, 2024
1 parent 696a95f commit 552753f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions update.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,13 @@
with tarfile.open(fileobj=tarlike, mode="r:gz") as tar:
tar.extractall()

# Step 5: Update running version
# Step 5: Run the run.sh script
res = subprocess.run(["sh", "run.sh"])

if res.returncode != 0:
print("Could not start infoskjerm")
exit(1)

# Step 6: Update running version
with open("VERSION", "w+") as file:
file.write(version)

# Step 6: Run the run.sh script
subprocess.run(["sh", "run.sh"])

0 comments on commit 552753f

Please sign in to comment.