Script is using function(), which is bash specific.

Change-Id: I925d42d10e471fa25ca3e924b1db1db6911b5641