about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-12-14 14:58:25 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-12-14 14:58:25 +0100
commit093174a815c220c6d9f1575b05af8e13a2b3ef92 (patch)
treefb36d73251c1a8daec0690f2f5fa2cf916a92d04
parentfeat(modules/lf/ctpv): Rework as module with autoloading (diff)
downloadnixos-config-093174a815c220c6d9f1575b05af8e13a2b3ef92.tar.gz
nixos-config-093174a815c220c6d9f1575b05af8e13a2b3ef92.zip
fix(modules/legacy/conf/firefox/scripts/unzip_mozlz4.py): Only print when not redirected
Otherwise, the redirected output is hindered with this status message.
We could also just print it to stderr every time instead, but that seems to easy.
-rwxr-xr-xmodules/home.legacy/conf/firefox/scripts/unzip_mozlz4.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/home.legacy/conf/firefox/scripts/unzip_mozlz4.py b/modules/home.legacy/conf/firefox/scripts/unzip_mozlz4.py
index 9a2348bf..71e4e6bc 100755
--- a/modules/home.legacy/conf/firefox/scripts/unzip_mozlz4.py
+++ b/modules/home.legacy/conf/firefox/scripts/unzip_mozlz4.py
@@ -31,7 +31,8 @@ def main(args):
     text = mozlz4_to_text(filepath_in)
     with open(filepath_out, "wb") as outfile:
         outfile.write(text)
-    print("Wrote decompressed text to {}".format(filepath_out))
+    if filepath_out != "/dev/stdout":
+        print("Wrote decompressed text to {}".format(filepath_out))
 
 
 if __name__ == "__main__":