Skip to content

Commit

Permalink
doc/generate_helper_doc: Fix support of shebangs
Browse files Browse the repository at this point in the history
  • Loading branch information
Salamandar committed Dec 26, 2024
1 parent 311584b commit fd39c80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/generate_helper_doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def parse_blocks(self):
current_block = {"name": None, "line": -1, "comments": [], "code": []}

for i, line in enumerate(self.file):
if line.startswith("#!/bin/bash"):
if i == 0 and line.startswith("#!"):
continue

line = line.rstrip().replace("\t", " ")
Expand Down

0 comments on commit fd39c80

Please sign in to comment.