summaryrefslogtreecommitdiffstats
path: root/lib/deps.sh
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-03-13 17:23:56 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-03-13 17:23:56 (EDT)
commitc18112a890bd884424622354677fbfb82bbe8b65 (patch)
tree377096a6558c8f63363b25cd62b873b9e6f3ddf7 /lib/deps.sh
parente6b04d9ffd8bef2482ab61957c138ae92527206d (diff)
Eliminate -a and -o options of [ commands
POSIX marks these as obsolescent.
Diffstat (limited to 'lib/deps.sh')
-rw-r--r--lib/deps.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/deps.sh b/lib/deps.sh
index 5af26ac..9ae63fe 100644
--- a/lib/deps.sh
+++ b/lib/deps.sh
@@ -172,9 +172,9 @@ ob_parse_dep()
printf '%s' "${pkg}"
[ -n "${archqual}" ] && printf ':%s' "${archqual}"
[ -n "${ver}" ] && printf ' (%s %s)' "${rel}" "${ver}"
- [ -z "${host_arch}" -a -n "${arches}" ] && \
+ [ -z "${host_arch}" ] && [ -n "${arches}" ] && \
printf ' [%s]' "${arches}"
- [ -z "${host_plat}" -a -n "${plats}" ] && \
+ [ -z "${host_plat}" ] && [ -n "${plats}" ] && \
printf ' [%s]' "${plats}"
printf '\n'