From 8dfb3adf4bfce9153877b2e92e57171139299046 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Thu, 4 May 2017 18:52:57 +0100 Subject: [PATCH] fixing sed --- lgsm/functions/command_update_functions.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lgsm/functions/command_update_functions.sh b/lgsm/functions/command_update_functions.sh index 848c65b68..a729e4084 100644 --- a/lgsm/functions/command_update_functions.sh +++ b/lgsm/functions/command_update_functions.sh @@ -51,9 +51,9 @@ if [ "${script_diff}" != "" ]; then copygamename="$(grep -m 1 gamename= "${rootdir}/${selfname}")" cp "${tmpdir}/linuxgsm.sh" "${rootdir}/${selfname}" - sed -i "s/shortname="core"/${copyshortname}/g" "${rootdir}/${selfname}" - sed -i "s/shortname="core"/${copyservername}/g" "${rootdir}/${selfname}" - sed -i "s/shortname="core"/${copygamename}/g" "${rootdir}/${selfname}" + sed -i "s/shortname=\"core\"/shortname=\"${shortname}\"/g" "${rootdir}/${selfname}" + sed -i "s/servername=\"core\"/servername=\"${servername}\"/g" "${rootdir}/${selfname}" + sed -i "s/gamename=\"core\"/gamename=\"${gamename}\"/g" "${rootdir}/${selfname}" else fn_print_ok_eol_nl fi