Sort the game list file after games are installed, so thing appear more or less in alphabetical order.
This commit is contained in:
parent
e2a9aaaa24
commit
87a9bddaf8
@ -140,6 +140,7 @@ add_launcher() {
|
|||||||
launchSettings="${launchSettings//[[:space:]]/-}|${1}|${game}"
|
launchSettings="${launchSettings//[[:space:]]/-}|${1}|${game}"
|
||||||
if ! grep -F -q -x "${launchSettings}" "${configFile}" ; then
|
if ! grep -F -q -x "${launchSettings}" "${configFile}" ; then
|
||||||
echo "${launchSettings}" >> "${configFile}"
|
echo "${launchSettings}" >> "${configFile}"
|
||||||
|
sort -o "${configFile}" "${configFile}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -208,7 +209,7 @@ while getopts "${command[*]//[[:space:]]/}" i ; do
|
|||||||
c) checklist;;
|
c) checklist;;
|
||||||
h) show_help;;
|
h) show_help;;
|
||||||
i) game_installer;;
|
i) game_installer;;
|
||||||
i) manualInstall="true"
|
m) manualInstall="true"
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user