From 787a355bd7eac745efbd39668bd6bd4490c25f06 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 14 Mar 2019 23:49:56 -0400 Subject: _ob_match_plat(): Remove loop --- diff --git a/lib/metadata.sh b/lib/metadata.sh index 80ec274..e0a1c9a 100644 --- a/lib/metadata.sh +++ b/lib/metadata.sh @@ -195,18 +195,15 @@ _ob_match_arch() _ob_match_plat() { local match_plat="${1}" - local plat_field="${2}" + local field_plat="${2}" shift 2 || _ob_abort - local field_plat= - for field_plat in ${plat_field}; do - if [ x"${field_plat}" = x'any' ]; then - return 0 - fi - if [ x"${field_plat}" = x"${match_plat}" ]; then - return 0 - fi - done + if [ x"${field_plat}" = x'any' ]; then + return 0 + fi + if [ x"${field_plat}" = x"${match_plat}" ]; then + return 0 + fi return 1 } -- cgit v0.9.1