Skip to content

Commit

Permalink
Merge pull request #16910 from mvdbeek/sort1_fix
Browse files Browse the repository at this point in the history
[23.1] Fix missing grep input in sort1 tool
  • Loading branch information
nsoranzo authored Oct 24, 2023
2 parents 575e05a + 856930e commit 2bf0601
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/filters/sorter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit 2bf0601

Please sign in to comment.