瀏覽代碼

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"