<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 5 March 2015 at 09:38, Chunrong Guo <span dir="ltr"><<a href="mailto:B40290@freescale.com" target="_blank">B40290@freescale.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div id=":1z2" class="" style="overflow:hidden">- for type in in ${UBOOT_CONFIG}; do<br>
+ for type in ${UBOOT_CONFIG}; do<br>
if [ "${type}"x = "in"x ]<br>
then<br>
continue<br>
fi</div></blockquote></div><br>The if "${type}x" = "inx" check demonstrates that the in was repeated for a reason, which you've just broken.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Of course all of that isn't required as a simple test demonstrates:</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">$ UBOOT_CONFIG=""</div><div class="gmail_extra">~</div><div class="gmail_extra">$ for type in ${UBOOT_CONFIG}; do echo x$type; done</div><div class="gmail_extra">~</div><div class="gmail_extra">$</div><div class="gmail_extra"><br></div><div class="gmail_extra">You can remove the "typex = inx" tests as if UBOOT_CONFIG isn't set the loop won't be entered.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Ross</div></div></div>