Skip to content

Commit 68b8087

Browse files
mikekgfbJack-Khuu
andauthored
Output explicit selection of /bin/bash as interpreter for test scripts generated from .md with updown.py (#1421)
Output explicit selection of /bin/bash as interpreter for generated script. Co-authored-by: Jack-Khuu <jack.khuu.7@gmail.com>
1 parent 09178dc commit 68b8087

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

torchchat/utils/scripts/updown.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,8 @@ def updown_processor(
267267
lines = file.readlines()
268268
print_flag = False
269269

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

272274
if create_sections:

0 commit comments

Comments
 (0)