From bc72b777399fa961c2276aadcd4a45f0e410eefc Mon Sep 17 00:00:00 2001 From: emmett1 Date: Fri, 22 Jun 2018 22:36:14 +0800 Subject: [PATCH] updated --- removepkg | 1 - scratch | 8 ++++++-- 2 files changed, 6 insertions(+), 3 deletions(-) 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