fix unbound variable (tmp)

This commit is contained in:
Tobias Gesellchen
2026-02-15 20:48:26 +01:00
parent 8af60c7e4b
commit d616bc09fd
+2 -2
View File
@@ -28,7 +28,7 @@ set -euo pipefail
# - Safe to re-run; it will update binary/config/unit and restart the service.
# ==============================================================================
VERSION="${1:-${VERSION:-v0.18.1}}"
VERSION="${1:-${VERSION:-v0.24.0}}"
# Normalize version prefix
if [[ ! "$VERSION" =~ ^v ]]; then
VERSION="v${VERSION}"
@@ -141,7 +141,7 @@ ensure_dirs() {
}
download_binary() {
local asset url tmp
local asset url tmp=""
asset="${ARCH_ASSET:-$(detect_arch_asset)}"
url="$(download_url_for "$asset")"