General: Fix more errors
This commit is contained in:
parent
d4a405f88b
commit
9572d37073
1 changed files with 2 additions and 2 deletions
4
neofetch
4
neofetch
|
@ -405,7 +405,7 @@ get_packages() {
|
||||||
|
|
||||||
"Mac OS X")
|
"Mac OS X")
|
||||||
[[ -d "/usr/local/bin" ]] && \
|
[[ -d "/usr/local/bin" ]] && \
|
||||||
packages="$(($(ls -l /usr/local/bin/ | grep -v "\(../Cellar/\|brew\)" | wc -l) - 1))"
|
packages="$(($(ls -l /usr/local/bin/ | grep -cv "\(../Cellar/\|brew\)") - 1))"
|
||||||
|
|
||||||
type -p port >/dev/null && \
|
type -p port >/dev/null && \
|
||||||
packages="$((packages + $(port installed | wc -l) - 1))"
|
packages="$((packages + $(port installed | wc -l) - 1))"
|
||||||
|
@ -1686,7 +1686,7 @@ get_public_ip() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z "$public_ip" ]] && type -p wget >/dev/null; then
|
if [[ -z "$public_ip" ]] && type -p wget >/dev/null; then
|
||||||
public_ip="$(wget -T 10 -qO- "$public_ip_host"; printf "%s")"
|
public_ip="$(wget -T 10 -qO- "$public_ip_host")"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue