diff options
Diffstat (limited to 'scripts/genconfig.sh')
-rwxr-xr-x | scripts/genconfig.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/genconfig.sh b/scripts/genconfig.sh index 4337666c..dedfde4d 100755 --- a/scripts/genconfig.sh +++ b/scripts/genconfig.sh @@ -29,11 +29,13 @@ genconfig() # and capitalization in the menu for j in toys/*/README do + DIR="$(dirname "$j")" + + [ $(ls "$DIR" | wc -l) -lt 2 ] && continue + echo "menu \"$(head -n 1 $j)\"" echo - DIR="$(dirname "$j")" - # extract config stanzas from each source file, in alphabetical order for i in $(ls -1 $DIR/*.c) do |