From a9c1b52c39175461dc1c19a4641fc50cc8c9d4f9 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Fri, 27 Jan 2012 19:12:31 -0500 Subject: Quote output of opkg and grep. --- (limited to 'src') diff --git a/src/oh-checkbuilddeps b/src/oh-checkbuilddeps index 0655fa6..e44c984 100644 --- a/src/oh-checkbuilddeps +++ b/src/oh-checkbuilddeps @@ -35,7 +35,7 @@ printf 'oh-checkbuilddeps: Checking build dependencies...\n' for dep in $(oh_get_field Build-Depends); do # TODO: Test this. - if [ -z $(opkg status "${dep}" | grep "^Package: ${dep}") ]; then + if [ -z "$(opkg status "${dep}" | grep "^Package: ${dep}")" ]; then printf 'oh-checkbuilddeps: Error: Dependency %s not installed.\n' \ "${dep}" >&2 exit 1 -- cgit v0.9.1