From bb7dd8ebebc238347a2c9329cc418eb16e53e982 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 14 Mar 2019 21:12:42 -0400 Subject: ob_match_plat(): Use clearer variable names --- (limited to 'lib') diff --git a/lib/metadata.sh b/lib/metadata.sh index 5aecf4a..850100a 100644 --- a/lib/metadata.sh +++ b/lib/metadata.sh @@ -211,23 +211,23 @@ ob_match_arch() ob_match_plat() { - local plat="${1}" + local match_plat="${1}" local plat_field="${2}" shift 2 || _ob_abort - local p= + local field_plat= - for p in ${plat_field}; do - if [ x"${plat}" = x'all' ]; then - if [ x"${p}" = x'all' ]; then + for field_plat in ${plat_field}; do + if [ x"${match_plat}" = x'all' ]; then + if [ x"${field_plat}" = x'all' ]; then return 0 else continue fi fi - if [ x"${p}" = x'any' ]; then + if [ x"${field_plat}" = x'any' ]; then return 0 fi - if [ x"${p}" = x"${plat}" ]; then + if [ x"${field_plat}" = x"${match_plat}" ]; then return 0 fi done -- cgit v0.9.1