Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

install-shfmt: Upgrade shfmt from 3.1.2 to 3.2.1.

Anders Kaseorgb3aa44c91442
diff --git a/tools/setup/install-shfmt b/tools/setup/install-shfmt
index e8da0ad67c1..57405095c66 100755
--- a/tools/setup/install-shfmt
+++ b/tools/setup/install-shfmt
@@ -1,9 +1,9 @@
#!/usr/bin/env bash
set -eu
-version=3.1.2
+version=3.2.1
binary="shfmt_v${version}_linux_amd64"
-sha256=c5794c1ac081f0028d60317454fe388068ab5af7740a83e393515170a7157dce
+sha256=43439b996942b53dfafa9b6ff084f394555d049c98fb7ec37978f7668b43e1be
check_version() {
out="$(shfmt --version 2>/dev/null)" && [ "$out" = "v$version" ]
@@ -13,7 +13,7 @@ if ! check_version; then
tmpdir="$(mktemp -d)"
trap 'rm -r "$tmpdir"' EXIT
cd "$tmpdir"
- wget -nv "https://github.com/mvdan/sh/releases/download/v3.1.2/$binary"
+ wget -nv "https://github.com/mvdan/sh/releases/download/v$version/$binary"
sha256sum -c <<<"$sha256 $binary"
chmod +x "$binary"
mv "$binary" /usr/local/bin/shfmt
diff --git a/version.py b/version.py
index 4c50f38fa0c..4baecc585a2 100644
--- a/version.py
+++ b/version.py
@@ -43,4 +43,4 @@ API_FEATURE_LEVEL = 35
# historical commits sharing the same major version, in which case a
# minor version bump suffices.
-PROVISION_VERSION = '117.1'
+PROVISION_VERSION = '117.2'