Skip to content

Commit

Permalink
Fix missing grep input in sort1 tool
Browse files Browse the repository at this point in the history
  • Loading branch information
bernt-matthias authored and mvdbeek committed Oct 24, 2023
1 parent 3dd88a4 commit 856930e
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 856930e

Please sign in to comment.