This commit is contained in:
emmett1
2018-04-18 14:58:04 +08:00
parent 086010e443
commit 447ca20caf

View File

@@ -77,6 +77,7 @@ wget
curl
httpup
scratchpkg
rc-init
)
adjustingtoolchain() {
@@ -104,13 +105,6 @@ 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"
@@ -159,8 +153,4 @@ for i in ${PKG[@]}; do
fi
done
if [ "$init" ]; then
scratch -i -p "$init"
fi
exit 0