Преглед на файлове

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 часа
родител
ревизия
d6ee33922a
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  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"