Set success_flag when running the new tweak menu

Former-commit-id: b799bdc3b81c7e38cfad2fab46042bf25de7c157
Former-commit-id: a3e9b01e5b3c4f5f8bfb70ee94b26ea6d82cb031
This commit is contained in:
2023-05-13 19:18:00 -04:00
parent bdedc98494
commit 1ef290b289
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -802,6 +802,7 @@ if __name__ == "__main__":
success_flag = True
read_shortcut()
elif arguments[0] == 'tweak':
success_flag = True
from stweak import global_menu
global_menu(False)
@@ -819,6 +820,7 @@ if __name__ == "__main__":
success_flag = True
whitelist_setup()
elif arg_count == 1 and arguments[0] == 'tweak':
success_flag = True
from stweak import global_menu
global_menu(False)
elif arg_count > 2 and arguments[1] in ('add', 'del'):
+1 -1
View File
@@ -88,7 +88,7 @@ def install_type():
_dev_type = 'server'
Path(f"{home}/.config/sshyp/deleted").mkdir(mode=0o700, exist_ok=True)
Path(f"{home}/.config/sshyp/whitelist").mkdir(mode=0o700, exist_ok=True)
curses_terminate('\nmake sure the ssh service is running and properly configured')
curses_terminate('\nmake sure the ssh service is running and properly configured\n')
else:
_dev_type = 'client'
if _install_type == 2: