Commit 44a84cbc authored by Ju's avatar Ju Committed by Christian Rebischke
Browse files

Add automatic update for shfmt

parent 03a4e66e
......@@ -24,8 +24,10 @@ case $1 in
;;
install-shfmt)
curl -Lo shfmt https://github.com/mvdan/sh/releases/download/v2.6.4/shfmt_v2.6.4_linux_amd64
SHFMT_VERSION="$(curl -s https://api.github.com/repos/mvdan/sh/releases/latest | jq -r -M '.tag_name')"
curl -Lo shfmt https://github.com/mvdan/sh/releases/download/"${SHFMT_VERSION}"/shfmt_"${SHFMT_VERSION}"_linux_amd64
chmod +x ./shfmt
./shfmt --version
;;
install-yapf)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment