Skip to content

Commit 6fa449e

Browse files
committed
actions: Fix shellcheck in ubuntu
1 parent 87ba0c3 commit 6fa449e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/main.yml

+13
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,19 @@ jobs:
4141
- name: 'Format and merge test'
4242
run: |
4343
set -e
44+
PATH="${HOME}/.shellcheck:${PATH}"
45+
mkdir -p "${HOME}/.shellcheck"
46+
case "$(uname -s)" in
47+
Darwin)
48+
wget -q https://github.com/koalaman/shellcheck/releases/download/v0.8.0/shellcheck-v0.8.0.darwin.x86_64.tar.xz -O shl.xz
49+
;;
50+
Linux)
51+
wget -q https://github.com/koalaman/shellcheck/releases/download/v0.8.0/shellcheck-v0.8.0.linux.x86_64.tar.xz -O shl.xz
52+
;;
53+
esac
54+
tar -xf shl.xz
55+
mv shellcheck*/shellcheck "${HOME}/.shellcheck/"
56+
rm -rf shl.xz shellcheck*
4457
{ { command -v apt-get && sudo apt-get install snapd -yqq && sudo snap install shfmt ;} ||
4558
{ command -v brew && brew install shfmt ;} ;} 2>| /dev/null 1>&2
4659
sh release.sh

0 commit comments

Comments
 (0)