Fix errors when commands return error text rather than data

I'm looking at you euca2ools

Change-Id: I82bfb8a3ee58fdc54ead6a285c9415593e741892
This commit is contained in:
Dean Troyer 2012-11-02 16:59:03 -05:00
parent afaeefd183
commit e88c0a2036

View File

@ -570,7 +570,7 @@ function is_package_installed() {
# is_set env-var
function is_set() {
local var=\$"$1"
if eval "[ -z $var ]"; then
if eval "[ -z \"$var\" ]"; then
return 1
fi
return 0