Bläddra i källkod

fix(core): label the install command shown after creating a server script (#5199)

After ./linuxgsm.sh <server>, the output said "Installed <game> server as
<script>" followed by a bare "./<script> install". The server files are not
installed at that point, so the line read as if installation had finished
and the command looked like stray output. Say "server script" and introduce
the command with "To install the server type:", matching the "To start
server type:" wording shown after install completes.

Fixes #3159
Daniel Gibbs 13 timmar sedan
förälder
incheckning
d6ee33922a
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. 2 1
      linuxgsm.sh

+ 2 - 1
linuxgsm.sh

@@ -383,9 +383,10 @@ fn_install_file() {
 	cp -R "${selfname}" "${local_filename}"
 	sed -i -e "s/shortname=\"core\"/shortname=\"${shortname}\"/g" "${local_filename}"
 	sed -i -e "s/gameservername=\"core\"/gameservername=\"${gameservername}\"/g" "${local_filename}"
-	echo -e "Installed ${gamename} server as ${local_filename}"
+	echo -e "Installed ${gamename} server script as ${local_filename}"
 	echo -e ""
 	if [ ! -d "${serverfiles}" ]; then
+		echo -e "To install the server type:"
 		echo -e "./${local_filename} install"
 	else
 		echo -e "Remember to check server ports"