Skip to content

Commit

Permalink
fix latest version fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
jakolehm committed Mar 22, 2020
1 parent dbfd4da commit e8f3077
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion share/chpharos/chpharos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e8f3077

Please sign in to comment.