Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds+github@gmail.com>2020-11-04 23:55:26 +0000
committerAnton Hvornum <anton.feeds+github@gmail.com>2020-11-04 23:55:26 +0000
commit16d9bd5934609ce3ddf9474cad05f6a338a0d6c4 (patch)
tree08011fea5ec94e84453ecb0f6fdc54ac9f8bcb70 /archinstall/lib
parentf594e6638a4fe772b5126e483887cbcc8704d3c0 (diff)
Logic issue minor fix.
Diffstat (limited to 'archinstall/lib')
-rw-r--r--archinstall/lib/output.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/archinstall/lib/output.py b/archinstall/lib/output.py
index 8896c2a1..7118adca 100644
--- a/archinstall/lib/output.py
+++ b/archinstall/lib/output.py
@@ -82,7 +82,7 @@ def log(*args, **kwargs):
# Log to a file output unless specifically told to suppress this feature.
# (level has no effect on the log file, everything will be written there)
- if 'file' in kwargs and not 'suppress' in kwargs and kwargs['suppress']:
+ if 'file' in kwargs and ('suppress' not in kwargs or kwargs['suppress'] == False):
if type(kwargs['file']) is str:
with open(kwargs['file'], 'a') as log_file:
log_file.write(f"{orig_string}\n")