fix scratch install -d option

This commit is contained in:
emmett1
2019-01-03 17:21:36 +08:00
parent 56ed76c2dd
commit 5e9c0e9a3f

View File

@@ -609,9 +609,9 @@ installpkg() {
for ii in ${PKGNAME[@]}; do
if [ ! $(getportpath $ii) ]; then
echo "Package '$ii' not found."
elif ! isinstalled $ii; then
echo "Package '$ii' not installed."
return 1
elif isinstalled $ii; then
echo "Package '$ii' already installed."
return 0
else
pushd $(getportpath $ii)
pkgbuild -i --no-hook ${OPTS[@]}