mirror of
https://github.com/outbackdingo/scratchpkg.git
synced 2026-02-06 01:16:34 +00:00
fix upgrade
This commit is contained in:
2
scratch
2
scratch
@@ -798,7 +798,7 @@ if [ "$mode" = "upgrade" ]; then
|
||||
parseopt ${ARG[@]}
|
||||
needarg "$PKG" || exit 1
|
||||
for pkg in ${PKG[@]}; do # check for existence of package
|
||||
if [ ! -e "$INDEX_DIR/$dep/.pkginfo" ]; then
|
||||
if [ ! -e "$INDEX_DIR/$pkg/.pkginfo" ]; then
|
||||
msgerr "Package '$pkg' not installed."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user