Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-04-09 23:41:13 +0200
committerAnton Hvornum <anton@hvornum.se>2021-04-09 23:41:13 +0200
commit9b2f627d9eb024e5068e317c00e7f8d8bb0ffa09 (patch)
tree81e706eb378ec8425f61c37e09eede83f3fd622b
parent99c18d5d663453d792683464ce6b077333ec7775 (diff)
Fixing broken logic in guided
-rw-r--r--examples/guided.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/guided.py b/examples/guided.py
index 2028c0c4..ed0a485a 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -37,7 +37,7 @@ def ask_user_questions():
# 1. Check if it has partitions
# 3. Check that we support the current partitions
# 2. If so, ask if we should keep them or wipe everything
- if archinstall.arguments['harddrive'].has_partitions():
+ if archinstall.arguments['harddrive'] and archinstall.arguments['harddrive'].has_partitions():
archinstall.log(f"{archinstall.arguments['harddrive']} contains the following partitions:", fg='yellow')
# We curate a list pf supported partitions