592
592
calc_startmap=false
593
593
fi
594
594
# If there's an existing config (not "superconf"), make sure that
595
- # preview_readme_and_config will be false on future launches.
595
+ # preview_readme_and_config and fix_capitalization will be false on future
596
+ # launches.
596
597
if [[ $has_conf == " true" ]]
597
598
then
598
599
if [[ " $preview_readme_and_config " != " false" ]]
@@ -601,6 +602,12 @@ then
601
602
echo " preview_readme_and_config=false" >> " $tempconf "
602
603
mv -f " $tempconf " " $conf "
603
604
fi
605
+ if [[ " $fix_capitalization " != " false" ]]
606
+ then
607
+ grep -v -- " ^\s*fix_capitalization=" " $conf " > " $tempconf "
608
+ echo " fix_capitalization=false" >> " $tempconf "
609
+ mv -f " $tempconf " " $conf "
610
+ fi
604
611
fi
605
612
fi
606
613
# Take care of any obvious capitalization gotchas.
@@ -937,17 +944,20 @@ then
937
944
source "$conf "
938
945
fi
939
946
# If we just created this config, clean it up a bit by removing examples
940
- # and then initialize the preview_readme_and_config value to false.
947
+ # and then initialize the preview_readme_and_config and fix_capitalization
948
+ # values to false.
941
949
if [[ $conf_created == "true" ]]
942
950
then
943
951
grep -v -- "^#\*" "$conf " | grep -v -- "^\s*#\s*startmap=" | grep -v -- "^\s*#\s*maplist=" | grep -v -- "^\s*#\s*extra_quake_args=" | grep -v -- "^\s*#\s*quake_args=" | sed 'N;/^\n$/D;P;D;' > "$tempconf "
944
952
echo >> "$tempconf "
945
953
cat <<- EOF >> "$tempconf "
946
- # The preview_readme_and_config option is set false after initial launch so
947
- # that the readme and config editor(s) won't appear on future launches.
954
+ # The options below are set false after initial launch so they won't
955
+ # happen again on future launches (unless you manually set them back to
956
+ # true).
948
957
EOF
949
958
echo >> "$tempconf "
950
959
echo "preview_readme_and_config=false" >> "$tempconf "
960
+ echo "fix_capitalization=false" >> "$tempconf "
951
961
mv -f "$tempconf " "$conf "
952
962
fi
953
963
# Abandon ship now if basegame_error is still set.
0 commit comments