소스 검색

will only overwrite on first occurance

Daniel Gibbs 3 년 전
부모
커밋
43bc549bb7
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lgsm/functions/command_update_linuxgsm.sh

+ 1 - 1
lgsm/functions/command_update_linuxgsm.sh

@@ -99,7 +99,7 @@ if [ "${script_diff}" != "" ]; then
 	sed -i "s+gamename=\"core\"+gamename=\"${gamename}\"+g" "${rootdir}/${selfname}"
 	sed -i "s+githubuser=\"GameServerManagers\"+githubuser=\"${githubuser}\"+g" "${rootdir}/${selfname}"
 	sed -i "s+githubrepo=\"LinuxGSM\"+githubrepo=\"${githubrepo}\"+g" "${rootdir}/${selfname}"
-	sed -i "s+githubbranch=\"master\"+githubbranch=\"${githubbranch}\"+g" "${rootdir}/${selfname}"
+	sed -i "s+githubbranch=\"master\"+githubbranch=\"${githubbranch}\"+g;q" "${rootdir}/${selfname}"
 
 	if [ $? != "0" ]; then
 		fn_print_fail_eol_nl