Fix #178 - apt issues

This commit is contained in:
g0tmi1k 2020-06-22 22:13:02 +01:00
parent d7ce1d69e6
commit 09e7d20651

View file

@ -156,8 +156,8 @@ function update() {
package="${tmp_package[${i}]}" package="${tmp_package[${i}]}"
## Update from the repos (e.g. Kali) ## Update from the repos (e.g. Kali)
apt-cache search "${package}" 2>/dev/null >/dev/null #dpkg -l "${package}" 2>/dev/null >/dev/null apt=$( apt-cache search "^${package}$" 2>/dev/null ) #dpkg -l "${package}" 2>/dev/null >/dev/null
if [[ "$?" == "0" ]]; then if [[ "$?" == "0" ]] && [[ "${apt}" != "" ]]; then
updatedeb "${package}" updatedeb "${package}"
else else
## Update from homebrew (e.g. OSX) ## Update from homebrew (e.g. OSX)