Skip to content

Commit 52de0c6

Browse files
committed
fix: add shebang to choco wrapper script to fix exec format error
1 parent 89ea40a commit 52de0c6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,13 @@ jobs:
3838
run: |
3939
sudo apt-get update
4040
sudo apt-get install -y mono-complete
41-
mkdir -p /opt/chocolatey
41+
sudo mkdir -p /opt/chocolatey
4242
wget -q -O- "https://github.com/chocolatey/choco/releases/download/2.4.1/chocolatey.v2.4.1.tar.gz" | sudo tar -xz -C "/opt/chocolatey"
43-
echo 'mono /opt/chocolatey/choco.exe "$@"' | sudo tee /usr/local/bin/choco
43+
echo '#!/bin/bash' | sudo tee /usr/local/bin/choco
44+
echo 'mono /opt/chocolatey/choco.exe "$@"' | sudo tee -a /usr/local/bin/choco
4445
sudo chmod +x /usr/local/bin/choco
46+
# Test that choco works
47+
choco --version
4548
4649
- name: Run GoReleaser
4750
uses: goreleaser/goreleaser-action@v6

0 commit comments

Comments
 (0)