summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/metadata.sh14
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