spkg script change

This commit is contained in:
Ohio2 2021-07-01 20:21:00 +02:00
parent edf3f7dbc8
commit d215e11a08

4
spkg
View file

@ -22,7 +22,7 @@ removepkg() {
source ./PACKAGE
"pkg_uninstall" "${prefix}"
}
sed "s/${pkgname} $(${pkgname} --version)//" "${prefix}"/var/cache/spkg.cache
sed "s/${pkgname} ${pkg_ver}//" "${prefix}"/var/cache/spkg.cache
}
instpkg() {
pkgname=$1
@ -38,7 +38,7 @@ instpkg() {
source ./PACKAGE
"pkg_install" "${prefix}"
}
sed a\ "${pkgname} $(${pkgname} --version)" "${prefix}"/var/cache/spkg.cache > "${prefix}"/var/cache/spkg.cache
sed a\ "${pkgname} ${pkg_ver}" "${prefix}"/var/cache/spkg.cache > "${prefix}"/var/cache/spkg.cache
}
update() {
pkgname=$1