diff options
author | P. J. McDermott <pjm@nac.net> | 2012-01-27 19:12:31 (EST) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2012-01-27 19:12:31 (EST) |
commit | a9c1b52c39175461dc1c19a4641fc50cc8c9d4f9 (patch) | |
tree | 817741ccbdd28e3ee0512071ab977fea1d9a29b6 | |
parent | 62c3e785d0ea603ff64825780f2b193ab3f4fe9f (diff) |
Quote output of opkg and grep.
-rw-r--r-- | src/oh-checkbuilddeps | 2 |
1 files changed, 1 insertions, 1 deletions
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 |