Skip to content

Commit

Permalink
Output explicit selection of /bin/bash as interpreter for test script…
Browse files Browse the repository at this point in the history
…s generated from .md with updown.py (#1421)

Output explicit selection of /bin/bash as interpreter for generated script.

Co-authored-by: Jack-Khuu <[email protected]>
  • Loading branch information
mikekgfb and Jack-Khuu authored Dec 23, 2024
1 parent 09178dc commit 68b8087
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions torchchat/utils/scripts/updown.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,8 @@ def updown_processor(
lines = file.readlines()
print_flag = False

# Use bash; set it to fail on the first failing command
output("#! /bin/bash", replace_list=None, suppress_list=None)
output("set -eou pipefail", replace_list=None, suppress_list=None)

if create_sections:
Expand Down

0 comments on commit 68b8087

Please sign in to comment.