Fix #178 - apt issues
This commit is contained in:
parent
d7ce1d69e6
commit
09e7d20651
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue