Skip to content

Commit 917bda6

Browse files
committed
fix: Pin bash shebang
1 parent 7660c35 commit 917bda6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

action.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,10 @@ runs:
7474
run: |
7575
curl -sL https://raw.githubusercontent.com/marverix/gah/refs/tags/$tag/gah -o "$GAH_INSTALL_DIR/gah"
7676
chmod +x "$GAH_INSTALL_DIR/gah"
77+
78+
- name: Pin bash shebang
79+
shell: bash
80+
run: |
81+
bash_location=$(which bash)
82+
bash_location="#\!${bash_location}"
83+
sed -i "1 s|.*|$bash_location|" "$GAH_INSTALL_DIR/gah"

0 commit comments

Comments
 (0)