diff --git a/man b/man index 2166a99..b196875 100644 --- a/man +++ b/man @@ -1,7 +1,7 @@ .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.48.3. -.TH SPKG "1" "June 2021" "spkg 21.06.30.1a" "User Commands" +.TH SPKG "1" "June 2021" "spkg 21.06.30.1b" "User Commands" .SH NAME -spkg \- manual page for spkg 21.06.30.1a +spkg \- manual page for spkg 21.06.30.1b .SH DESCRIPTION sPKG via WGET, to cache, just type in sudo spkg cache save. .TP diff --git a/spkg b/spkg index d79489b..1c21d1f 100755 --- a/spkg +++ b/spkg @@ -11,6 +11,7 @@ removepkg() { pkgname=$1 cd /usr/src/"${pkgname}" || exit 2 make uninstall + sed "s/${pkgname} $(${pkgname} --version)//" } instpkg() { pkgname=$1 @@ -25,8 +26,7 @@ instpkg() { make prepare make make install - cat "${pkgname}" > "${prefix}"/var/cache/spkg.cache - "${pkgname}" --version > "${prefix}"/var/cache/spkg.cache + sed a\ "${pkgname} $(${pkgname} --version)" /var/cache/spkg.cache > /var/cache/spkg.cache } update() { pkgname=$1 @@ -56,7 +56,7 @@ usage() { to setup (IMPORTANT!!!), just type in sudo spkg setup' } version() { - echo "spkg 21.06.30.1a" + echo "spkg 21.06.30.1b" } case "${1}" in setup)