tidy Bash script

This commit is contained in:
4am 2021-10-06 00:54:17 -04:00
parent cbc0f4191a
commit cf9c57d242

View File

@ -6,7 +6,7 @@ games=$(grep "," res/GAMES.CONF | grep -v "^#" | cut -d"," -f2 | cut -d"=" -f1 |
cp res/GAMEHELP/STANDARD "$1"
for c in {A..Z}; do
echo "group$c"
echo "$games" | grep "^$c" | while read -r game; do
for game in $(echo "$games" | grep "^$c"); do
echo "!byte ${#game}"
echo "!text \"$game\""
if [ -f "res/GAMEHELP/$game" ]; then