This commit is contained in:
teldra 2022-02-07 18:14:20 +01:00
parent b8e78b9c59
commit 300e3b4f9c
1 changed files with 1 additions and 1 deletions

View File

@ -122,11 +122,11 @@ yesno() {
readin() { readin() {
WHICH="$1" WHICH="$1"
header "$WHICH"
for i in $(find ./etc/${WHICH}/ -type f); do for i in $(find ./etc/${WHICH}/ -type f); 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]}