Merge pull request #16910 from mvdbeek/sort1_fix

[23.1] Fix missing grep input in sort1 tool
This commit is contained in:
Nicola Soranzo
2023-10-24 18:20:22 +01:00
committed by GitHub
+2 -1
View File
@@ -41,7 +41,8 @@ def main():
# grep comments
grep_comments = ["grep", "^#"]
exit_code = subprocess.call(grep_comments, stdout=output_fh)
exit_code = subprocess.call(grep_comments, stdin=input_fh, stdout=output_fh)
input_fh.seek(0)
if exit_code not in [0, 1]:
stop_err("Searching for comment lines failed")