Skip to content

Commit 50f8fbc

Browse files
committed
fix(install): correctly compare installed nightly daemon version to upgrade to latest
1 parent 73f2909 commit 50f8fbc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎scripts/install.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ install_uncloud_binaries() {
220220
# 0.20.0~nightly-abc < 0.20.0 < 0.21.0~nightly-def.
221221
# latest_version is always a clean stable tag from releases/latest, so the substitution is one-sided.
222222
local newest
223-
newest=$(printf '%s\n%s\n' "${installed_version//-/~}" "${latest_version}" | sort -V | tail -n1)
223+
newest=$(printf '%s\n%s\n' "${installed_version//-/\~}" "${latest_version}" | sort -V | tail -n1)
224224
if [ "${newest}" = "${latest_version}" ]; then
225225
log "⏳ Upgrading uncloudd ${installed_version} → ${latest_version}..."
226226
uncloudd_url="${UNCLOUD_GITHUB_URL}/releases/download/v${latest_version}/${uncloudd_archive_name}"

0 commit comments

Comments
 (0)