Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorYash Tripathi <tripathiyash97@gmail.com>2021-06-10 18:36:15 +0530
committerGitHub <noreply@github.com>2021-06-10 15:06:15 +0200
commitfcd0acfef261ad83f0d470957f94e6b046f66411 (patch)
tree9125442224e50012d951c3f9839b2d81a77c44d0 /examples
parent14d0685edc18515e3eb2bbe6e8d0df5c589b3f04 (diff)
added --dry-run flag (#570)
* added --dry-run flag
Diffstat (limited to 'examples')
-rw-r--r--examples/guided.py5
1 files changed, 4 insertions, 1 deletions
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.')