diff --git a/removepkg b/removepkg index 14551ae..81cad53 100755 --- a/removepkg +++ b/removepkg @@ -216,7 +216,6 @@ extract_opt() { *) OPTS+=($opt) ;; esac done - echo "${OPTS[@]}" } parse_opts() { diff --git a/scratch b/scratch index d56f026..1f18619 100755 --- a/scratch +++ b/scratch @@ -844,9 +844,13 @@ if [ "$mode" = "install" ]; then } parseopt ${ARG[@]} if [ "$NO_DEP" ]; then - portinstall "${PKG[@]}" -i ${OPTS[@]} + for pkg in "${PKG[@]}"; do + portinstall "$pkg" -i ${OPTS[@]} + done elif [ "$REINSTALL" ]; then - portinstall "${PKG[@]}" -r ${OPTS[@]} + for pkg in "${PKG[@]}"; do + portinstall "$pkg" -r ${OPTS[@]} + done else for pkg in ${PKG[@]}; do # check for existence of package if ! getportpath "$pkg" >/dev/null; then