Skip to content

Commit

Permalink
xupdate: Handle dashes in versions
Browse files Browse the repository at this point in the history
  • Loading branch information
freddylist committed Apr 2, 2023
1 parent 128ff54 commit 7484f52
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xupdate
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ function update_version() {
latest_version="$("${XBPS_DISTDIR}/xbps-src" $flag_H update-check "${pkgname}" \
| grep -e '->' \
| tail -n1 \
| sed -e 's/.*-\(.*\)/\1/')"
| sed -e "s/.* -> ${pkgname}-\(.*\)/\1/" \
| tr - .)"

[[ -z "${latest_version}" ]] && return

Expand Down

0 comments on commit 7484f52

Please sign in to comment.