mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 14:03:30 +00:00 
			
		
		
		
	install-shfmt: Upgrade shfmt from 3.1.2 to 3.2.1.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
		@@ -1,9 +1,9 @@
 | 
				
			|||||||
#!/usr/bin/env bash
 | 
					#!/usr/bin/env bash
 | 
				
			||||||
set -eu
 | 
					set -eu
 | 
				
			||||||
 | 
					
 | 
				
			||||||
version=3.1.2
 | 
					version=3.2.1
 | 
				
			||||||
binary="shfmt_v${version}_linux_amd64"
 | 
					binary="shfmt_v${version}_linux_amd64"
 | 
				
			||||||
sha256=c5794c1ac081f0028d60317454fe388068ab5af7740a83e393515170a7157dce
 | 
					sha256=43439b996942b53dfafa9b6ff084f394555d049c98fb7ec37978f7668b43e1be
 | 
				
			||||||
 | 
					
 | 
				
			||||||
check_version() {
 | 
					check_version() {
 | 
				
			||||||
    out="$(shfmt --version 2>/dev/null)" && [ "$out" = "v$version" ]
 | 
					    out="$(shfmt --version 2>/dev/null)" && [ "$out" = "v$version" ]
 | 
				
			||||||
@@ -13,7 +13,7 @@ if ! check_version; then
 | 
				
			|||||||
    tmpdir="$(mktemp -d)"
 | 
					    tmpdir="$(mktemp -d)"
 | 
				
			||||||
    trap 'rm -r "$tmpdir"' EXIT
 | 
					    trap 'rm -r "$tmpdir"' EXIT
 | 
				
			||||||
    cd "$tmpdir"
 | 
					    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"
 | 
					    sha256sum -c <<<"$sha256 $binary"
 | 
				
			||||||
    chmod +x "$binary"
 | 
					    chmod +x "$binary"
 | 
				
			||||||
    mv "$binary" /usr/local/bin/shfmt
 | 
					    mv "$binary" /usr/local/bin/shfmt
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -43,4 +43,4 @@ API_FEATURE_LEVEL = 35
 | 
				
			|||||||
#   historical commits sharing the same major version, in which case a
 | 
					#   historical commits sharing the same major version, in which case a
 | 
				
			||||||
#   minor version bump suffices.
 | 
					#   minor version bump suffices.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
PROVISION_VERSION = '117.1'
 | 
					PROVISION_VERSION = '117.2'
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user