General: Fix more errors

This commit is contained in:
Dylan Araps 2016-11-12 13:11:44 +11:00
parent d4a405f88b
commit 9572d37073

View file

@ -405,7 +405,7 @@ get_packages() {
"Mac OS X")
[[ -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 && \
packages="$((packages + $(port installed | wc -l) - 1))"
@ -1686,7 +1686,7 @@ get_public_ip() {
fi
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
}