diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-12-14 14:58:25 +0100 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-12-14 14:58:25 +0100 |
commit | 093174a815c220c6d9f1575b05af8e13a2b3ef92 (patch) | |
tree | fb36d73251c1a8daec0690f2f5fa2cf916a92d04 /modules/home.legacy/conf/firefox/scripts/unzip_mozlz4.py | |
parent | feat(modules/lf/ctpv): Rework as module with autoloading (diff) | |
download | nixos-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.
Diffstat (limited to 'modules/home.legacy/conf/firefox/scripts/unzip_mozlz4.py')
-rwxr-xr-x | modules/home.legacy/conf/firefox/scripts/unzip_mozlz4.py | 3 |
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__": |