summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. 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)
commita9c1b52c39175461dc1c19a4641fc50cc8c9d4f9 (patch)
tree817741ccbdd28e3ee0512071ab977fea1d9a29b6
parent62c3e785d0ea603ff64825780f2b193ab3f4fe9f (diff)
Quote output of opkg and grep.
-rw-r--r--src/oh-checkbuilddeps2
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