소스 검색

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"