We are in front of a different issue then. It seems that the image does not come with the bash shell, and the sh one does not have the 'function' keyword. All the scripts assume a bash shell, so, as the issue appeared because cirrus comes with a different one, I see no point in merging this change.
WDYT? Perhaps this can be bypassed by making two calls to the runScriptOnNode. The first one may run a command to install bash (without the wrapper script to avoid the mentioned failure), and the second call to run the desired stuff (such as chef or whatever). Could you try this too? --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/150#issuecomment-24692063
