From fe975126df2ea7dc7fff759d1b0e4ea548877eef Mon Sep 17 00:00:00 2001 From: langfingaz Date: Mon, 24 May 2021 12:54:52 +0200 Subject: [PATCH] fix sed hardcoded repo-name --- pkg/de-p1st-repo/arch-repo-vercmp.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/de-p1st-repo/arch-repo-vercmp.sh b/pkg/de-p1st-repo/arch-repo-vercmp.sh index 49e08ca..b6adbc0 100644 --- a/pkg/de-p1st-repo/arch-repo-vercmp.sh +++ b/pkg/de-p1st-repo/arch-repo-vercmp.sh @@ -51,7 +51,7 @@ function installed_pkg_vers(){ # $PKG_VERS contains of multiple lines in the format: "" # function all_pkg_vers(){ - PKG_VERS=$(pacman -S --list "${REMOTE_DB_NAME}" | sed 's|^de-p1st\s*||; s|\s*\[installed.*\]\s*$||') || return $? + PKG_VERS=$(pacman -S --list "${REMOTE_DB_NAME}" | sed "s|^${REMOTE_DB_NAME}\\s*||; s|\\s*\\[installed.*\\]\s*\$||") || return $? } main "$@"