4
0
Эх сурвалжийг харах

&& for glibc instead of ||

Logic function here
http://imgur.com/a/hKKp9
UltimateByte 9 жил өмнө
parent
commit
db61900b94

+ 2 - 2
lgsm/functions/check_deps.sh

@@ -150,7 +150,7 @@ if [ -n "$(command -v dpkg-query)" ]; then
 	fi
 	fi
 
 
 	# All servers except ts3,mumble and minecraft servers require libstdc++6 and lib32gcc1
 	# All servers except ts3,mumble and minecraft servers require libstdc++6 and lib32gcc1
-	if [ "${gamename}" != "TeamSpeak 3" ]||[ "${gamename}" != "Mumble" ]||[ "${engine}" != "lwjgl2" ]; then
+	if [ "${gamename}" != "TeamSpeak 3" ]&&[ "${gamename}" != "Mumble" ]&&[ "${engine}" != "lwjgl2" ]; then
 		if [ "${arch}" == "x86_64" ]; then
 		if [ "${arch}" == "x86_64" ]; then
 			array_deps_required+=( lib32gcc1 libstdc++6:i386 )
 			array_deps_required+=( lib32gcc1 libstdc++6:i386 )
 		else
 		else
@@ -219,7 +219,7 @@ elif [ -n "$(command -v yum)" ]; then
 	fi
 	fi
 
 
 	# All servers except ts3,mumble and minecraft servers require glibc.i686 and libstdc++.i686
 	# All servers except ts3,mumble and minecraft servers require glibc.i686 and libstdc++.i686
-	if [ "${gamename}" != "TeamSpeak 3" ]||[ "${gamename}" != "Mumble" ]||[ "${engine}" != "lwjgl2" ]; then
+	if [ "${gamename}" != "TeamSpeak 3" ]&&[ "${gamename}" != "Mumble" ]&&[ "${engine}" != "lwjgl2" ]; then
 		array_deps_required+=( glibc.i686 libstdc++.i686 )
 		array_deps_required+=( glibc.i686 libstdc++.i686 )
 	fi
 	fi