Преглед изворни кода

detect apt-get rather than dpkg-query #1004

Daniel Gibbs пре 9 година
родитељ
комит
125887e78f
1 измењених фајлова са 1 додато и 1 уклоњено
  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