From 87a9bddaf80461ff63de70463cbba39ee2661f25 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Thu, 3 Sep 2020 20:21:08 -0400 Subject: [PATCH] Sort the game list file after games are installed, so thing appear more or less in alphabetical order. --- audiogame-manager.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/audiogame-manager.sh b/audiogame-manager.sh index 488a701..dba2b7a 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -140,6 +140,7 @@ add_launcher() { launchSettings="${launchSettings//[[:space:]]/-}|${1}|${game}" if ! grep -F -q -x "${launchSettings}" "${configFile}" ; then echo "${launchSettings}" >> "${configFile}" + sort -o "${configFile}" "${configFile}" fi } @@ -208,7 +209,7 @@ while getopts "${command[*]//[[:space:]]/}" i ; do c) checklist;; h) show_help;; i) game_installer;; - i) manualInstall="true" + m) manualInstall="true" esac done