From 518e2d2da03523bcf15bc2254ab7c7213301c372 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sun, 28 May 2017 10:36:12 +0100 Subject: [PATCH] grep was bringing back multiple results --- linuxgsm.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/linuxgsm.sh b/linuxgsm.sh index 97f1a7621..1edcaf1d2 100644 --- a/linuxgsm.sh +++ b/linuxgsm.sh @@ -210,7 +210,7 @@ fn_install_menu() { # Gets server info from serverlist.csv and puts in to array fn_server_info(){ IFS="," - server_info_array=($(grep -a "${userinput}" "${serverlist}")) + server_info_array=($(grep -w "${userinput}" "${serverlist}")) shortname="${server_info_array[0]}" # csgo servername="${server_info_array[1]}" # csgoserver gamename="${server_info_array[2]}" # Counter Strike: Global Offensive @@ -297,6 +297,8 @@ if [ "${shortname}" == "core" ]; then echo "Install canceled" else echo "[ FAIL ] menu result does not match servername" + echo "result: ${result}" + echo "servername: ${servername}" fi elif [ -n "${userinput}" ]; then fn_server_info