Skip to content

Commit 5aae008

Browse files
committed
add default value to mode on install
1 parent bbfa048 commit 5aae008

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

mytoninstaller/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,7 @@ def CreateSymlinks(local):
914914

915915
def EnableMode(local):
916916
args = ["python3", "-m", "mytoncore", "-e"]
917-
if local.buffer.mode:
917+
if local.buffer.mode and local.buffer.mode != "none":
918918
args.append("enable_mode_" + local.buffer.mode)
919919
else:
920920
return

scripts/install.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ dump=false
5151
only_mtc=false
5252
only_node=false
5353
backup=none
54+
mode=none
5455
cpu_required=16
5556
mem_required=64000000 # 64GB in KB
5657

@@ -84,7 +85,7 @@ if [ "$only_mtc" = true ] && [ "$backup" = "none" ]; then
8485
fi
8586

8687

87-
if [ "${mode}" = "" ] && [ "$backup" = "none" ]; then # no mode or backup was provided
88+
if [ "${mode}" = "none" ] && [ "$backup" = "none" ]; then # no mode or backup was provided
8889
echo "Running cli installer"
8990
wget https://raw.githubusercontent.com/${author}/${repo}/${branch}/scripts/install.py
9091
pip3 install inquirer==3.4.0

0 commit comments

Comments
 (0)