fix sed hardcoded repo-name

This commit is contained in:
Daniel Langbein 2021-05-24 12:54:52 +02:00
parent 7ed8c84d37
commit fe975126df

View File

@ -51,7 +51,7 @@ function installed_pkg_vers(){
# $PKG_VERS contains of multiple lines in the format: "<pkgname><whitespace><pkgver>" # $PKG_VERS contains of multiple lines in the format: "<pkgname><whitespace><pkgver>"
# #
function all_pkg_vers(){ 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 "$@" main "$@"