summaryrefslogtreecommitdiff
path: root/tools/Z99-cloud-locale-test.sh
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2012-11-08 09:30:51 -0500
committerScott Moser <smoser@ubuntu.com>2012-11-08 09:30:51 -0500
commitce14139c0f94b99c8c47192620b0a9faf66a96a2 (patch)
tree132de11580085ca5976c071e74d4a5ed08447c2e /tools/Z99-cloud-locale-test.sh
parent1e6fc277a1c8d695c37741cc31f5ddab3d5b5600 (diff)
downloadvyos-cloud-init-ce14139c0f94b99c8c47192620b0a9faf66a96a2.tar.gz
vyos-cloud-init-ce14139c0f94b99c8c47192620b0a9faf66a96a2.zip
revert old zsh fix (revno 697)
Diffstat (limited to 'tools/Z99-cloud-locale-test.sh')
-rwxr-xr-xtools/Z99-cloud-locale-test.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/Z99-cloud-locale-test.sh b/tools/Z99-cloud-locale-test.sh
index 4012beeb..8ad485e8 100755
--- a/tools/Z99-cloud-locale-test.sh
+++ b/tools/Z99-cloud-locale-test.sh
@@ -22,7 +22,7 @@ locale_warn() {
case "$w1" in
locale:) bad_names="${bad_names} ${w4}";;
*)
- key=${w1%%\=*}
+ key=${w1%%=*}
val=${w1#*=}
val=${val#\"}
val=${val%\"}
@@ -31,7 +31,7 @@ locale_warn() {
done
for bad in $bad_names; do
for var in ${vars}; do
- [ "${bad}" = "${var%\=*}" ] || continue
+ [ "${bad}" = "${var%=*}" ] || continue
value=${var#*=}
[ "${bad_lcs#* ${value}}" = "${bad_lcs}" ] &&
bad_lcs="${bad_lcs} ${value}"