소스 검색

corrected if statements

Daniel Gibbs 10 년 전
부모
커밋
a9faafac74
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      functions/check_steamcmd.sh

+ 1 - 1
functions/check_steamcmd.sh

@@ -53,7 +53,7 @@ else
 		rm -v "${steamcmddir}/steamcmd_linux.tar.gz"
 		chmod +x "${steamcmddir}/steamcmd.sh"
 	fi		
-	if [ "${function_selfname}" != "command_update.sh" ]||[ "${function_selfname}" != "command_validate.sh" ]; then
+	if [ "${function_selfname}" == "command_update.sh" ]||[ "${function_selfname}" == "command_validate.sh" ]; then
 		# Checks that steamcmd is working correctly and will prompt Steam Guard if required.
 		"${steamcmddir}"/steamcmd.sh +login "${steamuser}" "${steampass}" +quit
 		if [ $? -ne 0 ]; then