Daniel Gibbs 10 лет назад
Родитель
Сommit
be7b8cca80
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"
 		rm -v "${steamcmddir}/steamcmd_linux.tar.gz"
 		chmod +x "${steamcmddir}/steamcmd.sh"
 		chmod +x "${steamcmddir}/steamcmd.sh"
 	fi		
 	fi		
-	if [ "${modulename}" == "Update" ]||[ "${modulename}" == "Validate" ]; 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.
 		# Checks that steamcmd is working correctly and will prompt Steam Guard if required.
 		"${steamcmddir}"/steamcmd.sh +login "${steamuser}" "${steampass}" +quit
 		"${steamcmddir}"/steamcmd.sh +login "${steamuser}" "${steampass}" +quit
 		if [ $? -ne 0 ]; then
 		if [ $? -ne 0 ]; then