~smoser/cloud-init/lp-1077700

« back to all changes in this revision

Viewing changes to tools/Z99-cloud-locale-test.sh

  • Committer: Scott Moser
  • Date: 2012-11-06 20:28:29 UTC
  • Revision ID: smoser@ubuntu.com-20121106202829-zy9cnbfo39carqvk
tools/Z99-cloud-locale-test.sh: avoid warning when shell is zsh

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
                case "$w1" in
23
23
                        locale:) bad_names="${bad_names} ${w4}";;
24
24
                        *)
25
 
                                key=${w1%%=*}
 
25
                                key=${w1%%\=*}
26
26
                                val=${w1#*=}
27
27
                                val=${val#\"}
28
28
                                val=${val%\"}
31
31
        done
32
32
        for bad in $bad_names; do
33
33
                for var in ${vars}; do
34
 
                        [ "${bad}" = "${var%=*}" ] || continue
 
34
                        [ "${bad}" = "${var%\=*}" ] || continue
35
35
                        value=${var#*=}
36
36
                        [ "${bad_lcs#* ${value}}" = "${bad_lcs}" ] &&
37
37
                                bad_lcs="${bad_lcs} ${value}"