From 66cef9ce46065ffb1d767b6bf4f226c0506459c3 Mon Sep 17 00:00:00 2001 From: langfingaz Date: Mon, 24 May 2021 15:37:46 +0200 Subject: [PATCH] fix2 --- pkg/de-p1st-repo/PKGBUILD | 2 +- pkg/de-p1st-repo/arch-repo-vercmp.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/de-p1st-repo/PKGBUILD b/pkg/de-p1st-repo/PKGBUILD index 9906acb..d7823bc 100644 --- a/pkg/de-p1st-repo/PKGBUILD +++ b/pkg/de-p1st-repo/PKGBUILD @@ -2,7 +2,7 @@ _pkgname=repo _reponame=arch pkgname="de-p1st-$_pkgname" -pkgver=0.2.5 +pkgver=0.2.6 pkgrel=1 pkgdesc="Bash script to manage remote Arch Linux repository" arch=('any') diff --git a/pkg/de-p1st-repo/arch-repo-vercmp.sh b/pkg/de-p1st-repo/arch-repo-vercmp.sh index 1477bc0..0cb225e 100644 --- a/pkg/de-p1st-repo/arch-repo-vercmp.sh +++ b/pkg/de-p1st-repo/arch-repo-vercmp.sh @@ -45,12 +45,12 @@ function get_vcs_packages(){ # https://github.com/AladW/aurutils/pull/283/files readonly AURVCS='.*-(bzr|git|hg|svn)$' - for PKG_VER in "${PKG_VERS[@]}"; do + while IFS= read -r PKG_VER; do PKGNAME=$(first_word "${PKG_VER}") || return $? if echo "${PKGNAME}" | grep -E "$AURVCS"; then VCS_PKGS+=("${PKGNAME}") fi - done + done <<< "${PKG_VERS}" } #