This commit is contained in:
emmett1
2018-03-11 17:49:13 +08:00
parent b6108ba46c
commit 310711e0b6
2 changed files with 12 additions and 1 deletions

View File

@@ -104,6 +104,13 @@ adjustingtoolchain() {
sleep 5
}
if [ -n "$1" -a -n "$2" ]; then
case $1 in
--init) init=$2 ;;
*) ;;
esac
fi
for i in ${PKG[@]}; do
if [[ -d "$INDEX_DIR/$i" ]]; then
echo "$i is installed"
@@ -152,4 +159,8 @@ for i in ${PKG[@]}; do
fi
done
if [ "$init" ]; then
scratch -i -p "$init"
fi
exit 0

View File

@@ -516,7 +516,7 @@ portinstall() {
buildpkg ${OPTS[@]} || exit 1
popd
else
msgerr "Port '$pkg$' not found."
msgerr "Port '$pkg' not found."
fi
done
}