Browse Source

bug

pull/3568/head
Daniel Gibbs 4 years ago
parent
commit
2561ecfe8c
  1. 6
      lgsm/functions/check_deps.sh

6
lgsm/functions/check_deps.sh

@ -233,15 +233,15 @@ fn_deps_detector(){
fi
elif [ "$(command -v dpkg-query 2>/dev/null)" ]; then
dpkg-query -W -f='${Status}' "${deptocheck}" 2>/dev/null | grep -q -P '^install ok installed'
depstatus=$?
elif [ "$(command -v dnf 2>/dev/null)" ]; then
dnf list installed "${deptocheck}" > /dev/null 2>&1
depstatus=$?
elif [ "$(command -v rpm 2>/dev/null)" ]; then
rpm -q "${deptocheck}" > /dev/null 2>&1
fi
if [ -z "${depstatus}" ]; then
depstatus=$?
fi
if [ "${depstatus}" == "0" ]; then
# If dependency is found.
missingdep=0

Loading…
Cancel
Save