summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2012-11-08 09:31:11 -0500
committerScott Moser <smoser@ubuntu.com>2012-11-08 09:31:11 -0500
commit380bd3f3417c640191bdf90f6622f8bbbe12b5c7 (patch)
tree28176e5cfc13807a7737159c79dabf3d10dab8ca /tools
parentce14139c0f94b99c8c47192620b0a9faf66a96a2 (diff)
downloadvyos-cloud-init-380bd3f3417c640191bdf90f6622f8bbbe12b5c7.tar.gz
vyos-cloud-init-380bd3f3417c640191bdf90f6622f8bbbe12b5c7.zip
remove unused variable 'cr'. fix usage of 'value' to local 'val'
Diffstat (limited to 'tools')
-rwxr-xr-xtools/Z99-cloud-locale-test.sh10
1 files changed, 4 insertions, 6 deletions
diff --git a/tools/Z99-cloud-locale-test.sh b/tools/Z99-cloud-locale-test.sh
index 8ad485e8..97c92166 100755
--- a/tools/Z99-cloud-locale-test.sh
+++ b/tools/Z99-cloud-locale-test.sh
@@ -10,9 +10,7 @@
#
locale_warn() {
- local cr="
-"
- local bad_names="" bad_lcs="" key="" value="" var=""
+ local bad_names="" bad_lcs="" key="" val="" var="" vars=""
local w1 w2 w3 w4 remain
# locale is expected to output either:
# VARIABLE=
@@ -32,9 +30,9 @@ locale_warn() {
for bad in $bad_names; do
for var in ${vars}; do
[ "${bad}" = "${var%=*}" ] || continue
- value=${var#*=}
- [ "${bad_lcs#* ${value}}" = "${bad_lcs}" ] &&
- bad_lcs="${bad_lcs} ${value}"
+ val=${var#*=}
+ [ "${bad_lcs#* ${val}}" = "${bad_lcs}" ] &&
+ bad_lcs="${bad_lcs} ${val}"
break
done
done