diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-03-14 21:12:42 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-03-14 21:12:42 (EDT) |
commit | bb7dd8ebebc238347a2c9329cc418eb16e53e982 (patch) | |
tree | a475709247c9adb535741375158b8280ac62a3cf /lib | |
parent | 99a6fe694a0b0074861e35fe29c5c56feb9a379e (diff) |
ob_match_plat(): Use clearer variable names
Diffstat (limited to 'lib')
-rw-r--r-- | lib/metadata.sh | 14 |
1 files changed, 7 insertions, 7 deletions
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 |