summaryrefslogtreecommitdiffstats
path: root/lib/controlfields
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-01-21 13:01:14 (EST)
committer P. J. McDermott <pjm@nac.net>2012-01-21 13:01:14 (EST)
commitcf126b51e92283d2178b66db415491e5203e7129 (patch)
treeed2e949fb7f21b88e886e2edfc85df4b2a005a54 /lib/controlfields
parentc2a1ec410438283a86f936b346cccb24f53b0fc2 (diff)
Fix unquoted operand to '['.
Diffstat (limited to 'lib/controlfields')
-rw-r--r--lib/controlfields2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/controlfields b/lib/controlfields
index aaaf668..12e3c71 100644
--- a/lib/controlfields
+++ b/lib/controlfields
@@ -88,7 +88,7 @@ oh_get_field()
# Parse the control file.
_value=''
while read -r _line; do
- if [ -z ${_value} ]; then
+ if [ -z "${_value}" ]; then
_value=$(echo "${_line}" | sed -n \
"s/^${_field}:[[:space:]]*\(.*\)[[:space:]]*$/\\1/p")
else