mirror of
https://github.com/outbackdingo/scratchpkg.git
synced 2026-02-05 08:28:00 +00:00
fix reading package detail for pkgadd
This commit is contained in:
8
pkgadd
8
pkgadd
@@ -190,11 +190,11 @@ if [ "$UID" != "0" ]; then
|
||||
ret 1
|
||||
fi
|
||||
|
||||
noextname=${BASEPKGNAME%*.spkg.*}
|
||||
name=${noextname%%-*}
|
||||
noextname=${noextname#*-}
|
||||
version=${noextname%%-*}
|
||||
noextname=${BASEPKGNAME%*.spkg.tar.*}
|
||||
release=${noextname##*-}
|
||||
noextname=${noextname%-*}
|
||||
version=${noextname##*-}
|
||||
name=${noextname%-*}
|
||||
|
||||
# get package information if installed
|
||||
if isinstalled $name; then
|
||||
|
||||
Reference in New Issue
Block a user