'Adds the sequence of Bash statements to fetch and install halyard.'

def add_install_hal_script_statements(self, script):

    options = self.options
    script.append('curl    -s    -O    {url}'.format(url=options.halyard_install_script))
    install_params = ['-y']
    if options.halyard_repository:
        install_params.extend(['--repository', options.halyard_repository])
    if options.halyard_version:
        install_params.extend(['--version', options.halyard_version])
    if self.hal_user:
        install_params.extend(['--user', self.hal_user])
    if options.spinnaker_repository:
        install_params.extend(['--spinnaker-repository', options.spinnaker_repository])
    script.append('sudo    bash    ./InstallHalyard.sh    {install_params}'.format(install_params='    '.join(install_params)))
    return script
