From c18112a890bd884424622354677fbfb82bbe8b65 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Wed, 13 Mar 2019 17:23:56 -0400 Subject: Eliminate -a and -o options of [ commands POSIX marks these as obsolescent. --- (limited to 'lib/deps.sh') 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' -- cgit v0.9.1