Fix install packages with r2pm

This commit is contained in:
Álvaro Felipe Melchor 2016-03-26 16:01:31 +01:00 committed by pancake
parent 6e8c69a695
commit 11c8219f83
1 changed files with 7 additions and 6 deletions

View File

@ -82,15 +82,16 @@ PackagesInstall() {
PLUGINS="`r2pm -lu`"
ARGS=""
for a in ${PLUGINS} ; do
ARGS="${ARGS} $a . on"
ARGS="${ARGS} $a . off"
done
dialog --radiolist "Select packages to install" 0 0 0 ${ARGS} 2> .nconfig.tmp
dialog --checklist "Select packages to install" 0 0 0 ${ARGS} 2> .nconfig.tmp
OPT=$(<.nconfig.tmp)
echo
echo "Selected ${OPT}"
if [ -n "${OPT}" -a -f "${OPT}" ]; then
cp -f ${OPT} plugins.cfg
./configure-plugins
if [ -n "${OPT}" ]; then
for a in ${OPT} ; do
r2pm -i "$a"
sleep 1
done
fi
}