From 03af50c657b9c02803eb2346af29ad8c4df27dd6 Mon Sep 17 00:00:00 2001 From: xdavidwu Date: Wed, 13 Apr 2022 13:02:30 +0800 Subject: [PATCH] update: remove unused mktemp --- update | 1 - 1 file changed, 1 deletion(-) diff --git a/update b/update index a3f3c2d..ff5915e 100755 --- a/update +++ b/update @@ -3,7 +3,6 @@ set -e resolve_branch() { - headers=$(mktemp) res=$(curl --etag-save "$1/etag" --etag-compare "$1/etag" -f "https://api.github.com/repos/$1/git/ref/heads/$2" | jq -r '.object.sha') [ -n "$res" ] && echo "$res" && return || true [ -n "$3" ] && echo "$3" || (echo "HTTP successful, but no values nor fallback found" >&2; rm "$i/etag"; false) -- 2.43.0