Skip to content

Commit a7bdc12

Browse files
committed
fix upgrade --force
1 parent 4eaa520 commit a7bdc12

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

mytonctrl/mytonctrl.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,11 @@ def Update(local, args):
345345
#end define
346346

347347
def Upgrade(ton, args):
348+
force = False
349+
if '--force' in args:
350+
force = True
351+
args.remove('--force')
352+
348353
repo = "ton"
349354
author, repo, branch = check_git(args, repo, "upgrade")
350355

@@ -366,11 +371,6 @@ def Upgrade(ton, args):
366371
validatorConsole["pubKeyPath"] = "/var/ton-work/keys/server.pub"
367372
ton.SetSettings("validatorConsole", validatorConsole)
368373

369-
force = False
370-
if '--force' in args:
371-
force = True
372-
args.remove('--force')
373-
374374
clang_version = get_clang_major_version()
375375
if (clang_version is None or clang_version < 16) and not force:
376376
text = "{red}Error: clang version 16 or higher is required for TON Node software upgrade.{endc}\n"

0 commit comments

Comments
 (0)