mirror of
https://codeberg.org/privacy1st/arch
synced 2024-12-23 01:16:04 +01:00
fix sed hardcoded repo-name
This commit is contained in:
parent
7ed8c84d37
commit
fe975126df
@ -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 "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user