From fcd0acfef261ad83f0d470957f94e6b046f66411 Mon Sep 17 00:00:00 2001 From: Yash Tripathi Date: Thu, 10 Jun 2021 18:36:15 +0530 Subject: added --dry-run flag (#570) * added --dry-run flag --- examples/guided.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/guided.py b/examples/guided.py index 56c054fc..266efbd4 100644 --- a/examples/guided.py +++ b/examples/guided.py @@ -270,7 +270,10 @@ def perform_installation_steps(): with open("/var/log/archinstall/user_configuration.json", "w") as config_file: config_file.write(user_configuration) print() - + + if archinstall.arguments.get('dry_run'): + exit(0) + if not archinstall.arguments.get('silent'): input('Press Enter to continue.') -- cgit v1.2.3-54-g00ecf