From e8f30776268e96d3d2510ef5de706e5a30a7f1bc Mon Sep 17 00:00:00 2001 From: Jari Kolehmainen Date: Sun, 22 Mar 2020 20:40:05 +0200 Subject: [PATCH] fix latest version fetch --- share/chpharos/chpharos.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/chpharos/chpharos.sh b/share/chpharos/chpharos.sh index 43ef3bb..d1f3c87 100644 --- a/share/chpharos/chpharos.sh +++ b/share/chpharos/chpharos.sh @@ -530,7 +530,7 @@ EOF fi if [ "${version}" = "latest" ]; then - version=$(_chpharos_remote_versions "${pre}" | head -1) || (_chpharos_error_eacho "failed to find the latest version"; return 1) + version=$(_chpharos_remote_versions "${pre}" | tail -n1) || (_chpharos_error_eacho "failed to find the latest version"; return 1) fi if _chpharos_version_is_installed "${version}" && [ -z "${force}" ]; then