From b22973b3c57485a65459456ff2730bc5181cb26c Mon Sep 17 00:00:00 2001 From: j-hc Date: Wed, 13 Nov 2024 02:27:05 +0300 Subject: [PATCH] fix get_patch_last_supported_ver --- utils.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.sh b/utils.sh index 6890aee..4f940f1 100755 --- a/utils.sh +++ b/utils.sh @@ -228,7 +228,7 @@ get_patch_last_supported_ver() { ver=$(sed -n "/^Name: $line\$/,/^\$/p" <<<"$op" | sed -n "/^Compatible versions:\$/,/^\$/p" | tail -n +2) vers=${ver}${NL} done <<<"$(list_args "$inc_sel")" - vers=$(xargs <<<"$vers") + vers=$(awk '{$1=$1}1' <<<"$vers") if [ "$vers" ]; then get_highest_ver <<<"$vers" return