Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Commit 5db4e74

Browse files
authored
Update updown.py
Output explicit selection of /bin/bash as interpreter for generated script.
1 parent 4dc2f89 commit 5db4e74

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)