Skip to content

Commit

Permalink
exit from update script after os check
Browse files Browse the repository at this point in the history
fix #359
  • Loading branch information
Stefal committed Jan 28, 2024
1 parent 3c8568c commit 498ca95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rtkbase_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,8 @@ upd_2.4.2() {

#check if we can apply the update
#FOR THE OLDER ME -> Don't forget to modify the os detection if there is a 2.5.x release !!!
[[ $checking == '--checking' ]] && check_before_update
[[ $checking == '--checking' ]] && check_before_update && exit

echo '################################'
echo 'Starting standard update'
echo '################################'
Expand Down
1 change: 1 addition & 0 deletions web_app/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ def update_rtkbase(update_file=False):
if answer.returncode != 0:
socketio.emit("updating_rtkbase_stopped", json.dumps({"error" : answer.stderr.splitlines()}), namespace="/test")
else : #if ok, launch update script
print("Launch update")
socketio.emit("updating_rtkbase", namespace="/test")
rtk.shutdownBase()
time.sleep(1)
Expand Down

0 comments on commit 498ca95

Please sign in to comment.