diff --git a/audiogame-manager.sh b/audiogame-manager.sh index 14bc14c..a2fe53b 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -1050,6 +1050,11 @@ game_launcher() { add_launcher() { local launchSettings="${game,,}" launchSettings="${launchSettings//[[:space:]]/-}|${1}|${game}" + shift + while [[ $# -gt 0 ]]; do + launchSettings+="|$1" + shift + done if ! grep -F -q -x "${launchSettings}" "${configFile}" 2> /dev/null ; then echo "${launchSettings}" >> "${configFile}" sort -o "${configFile}" "${configFile}"