This commit is contained in:
emmett1
2018-06-22 22:36:14 +08:00
parent ded35b82f6
commit bc72b77739
2 changed files with 6 additions and 3 deletions

View File

@@ -216,7 +216,6 @@ extract_opt() {
*) OPTS+=($opt) ;;
esac
done
echo "${OPTS[@]}"
}
parse_opts() {

View File

@@ -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