diff --git a/scratch b/scratch index e23a4ae..b2184c3 100755 --- a/scratch +++ b/scratch @@ -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[@]}