devcontainer/common/install/shellcheck

13 lines
267 B
Bash

#!/bin/bash
set -e
ARCH=$(get_arch)
curl -fLs \
"https://github.com/koalaman/shellcheck/releases/download/stable/shellcheck-stable.linux.${ARCH}.tar.xz" \
| tar -xJ
mv -f "./shellcheck-stable/shellcheck" "/usr/bin/shellcheck"
rm -rf "./shellcheck-stable"