Răsfoiți Sursa

detect apt-get rather than dpkg-query #1004

Daniel Gibbs 9 ani în urmă
părinte
comite
125887e78f
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      lgsm/functions/check_deps.sh

+ 1 - 1
lgsm/functions/check_deps.sh

@@ -20,7 +20,7 @@ fn_deps_detector(){
 		depstatus=0
 		deptocheck="${javaversion}"
 		unset javacheck
-	elif [ -n "$(command -v dpkg-query)" ]; then
+	elif [ -n "$(command -v apt-get)" ]; then
 		dpkg-query -W -f='${Status}' ${deptocheck} 2>/dev/null | grep -q -P '^install ok installed$'
 		depstatus=$?
 	elif [ -n "$(command -v yum)" ]; then