Skip to content

Commit 498ca95

Browse files
committed
exit from update script after os check
fix #359
1 parent 3c8568c commit 498ca95

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

rtkbase_update.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,8 @@ upd_2.4.2() {
327327

328328
#check if we can apply the update
329329
#FOR THE OLDER ME -> Don't forget to modify the os detection if there is a 2.5.x release !!!
330-
[[ $checking == '--checking' ]] && check_before_update
330+
[[ $checking == '--checking' ]] && check_before_update && exit
331+
331332
echo '################################'
332333
echo 'Starting standard update'
333334
echo '################################'

web_app/server.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,7 @@ def update_rtkbase(update_file=False):
348348
if answer.returncode != 0:
349349
socketio.emit("updating_rtkbase_stopped", json.dumps({"error" : answer.stderr.splitlines()}), namespace="/test")
350350
else : #if ok, launch update script
351+
print("Launch update")
351352
socketio.emit("updating_rtkbase", namespace="/test")
352353
rtk.shutdownBase()
353354
time.sleep(1)

0 commit comments

Comments
 (0)