File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -366,8 +366,13 @@ def Upgrade(ton, args):
366366 validatorConsole ["pubKeyPath" ] = "/var/ton-work/keys/server.pub"
367367 ton .SetSettings ("validatorConsole" , validatorConsole )
368368
369+ force = False
370+ if '--force' in args :
371+ force = True
372+ args .remove ('--force' )
373+
369374 clang_version = get_clang_major_version ()
370- if (clang_version is None or clang_version < 16 ) and ( '--force' not in args ) :
375+ if (clang_version is None or clang_version < 16 ) and not force :
371376 text = "{red}Error: clang version 16 or higher is required for TON Node software upgrade.{endc}\n "
372377 if clang_version is None :
373378 text += "Could not check clang version.\n If you are sure that clang version is 16 or higher, use --force option.\n "
You can’t perform that action at this time.
0 commit comments