Here is my script (boot2docker ssh).
docker pull sequenceiq/kylin
curl -O https://raw.githubusercontent.com/sequenceiq/docker-kylin/master/ambari-functions
source ambari-functions
And the returned error :
-sh: ambari-functions: line 11: syntax error: bad function name
ambari-functions rename run-command to run_command rename amb-clean to amb_clean etc