From 093174a815c220c6d9f1575b05af8e13a2b3ef92 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sat, 14 Dec 2024 14:58:25 +0100 Subject: 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. --- modules/home.legacy/conf/firefox/scripts/unzip_mozlz4.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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__": -- cgit 1.4.1