progress
This commit is contained in:
parent
26d0611b6c
commit
b436b4a642
|
@ -121,22 +121,29 @@ yesno() {
|
||||||
|
|
||||||
readin() {
|
readin() {
|
||||||
WHICH="$1"
|
WHICH="$1"
|
||||||
header "$WHICH"
|
|
||||||
local -a choice
|
local -a choice
|
||||||
for i in $(find ./etc/${WHICH}/ -type f | sort); do
|
for i in $(find ./etc/${WHICH}/ -type f | sort); do
|
||||||
choice+=("$(basename $i)")
|
choice+=("$(basename $i)")
|
||||||
done
|
done
|
||||||
if [ "${#choice[@]}" -gt "1" ]; then
|
if [ "${#choice[@]}" -gt "1" ]; then
|
||||||
|
header "$WHICH"
|
||||||
multiplechoice "${choice[@]}"
|
multiplechoice "${choice[@]}"
|
||||||
elif [ "${#choice[@]}" -eq "1" ]; then
|
elif [ "${#choice[@]}" -eq "1" ]; then
|
||||||
output=${choice[0]}
|
output=${choice[0]}
|
||||||
fi
|
fi
|
||||||
if ! [ "${#choice[@]}" -eq "0" ]; then
|
if ! [ "${#choice[@]}" -eq "0" ]; then
|
||||||
|
if [ -s ./etc/${WHICH}/$output ]; then
|
||||||
|
if grep -q "packages()" ./etc/${WHICH}/$output; then
|
||||||
. ./etc/${WHICH}/$output
|
. ./etc/${WHICH}/$output
|
||||||
packages
|
packages
|
||||||
reset packages
|
reset packages
|
||||||
|
fi
|
||||||
|
|
||||||
|
if grep -q "config()" ./etc/${WHICH}/$output; then
|
||||||
cp ./etc/${WHICH}/$output $tmp_target
|
cp ./etc/${WHICH}/$output $tmp_target
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
ignorepkg() {
|
ignorepkg() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user