{"action":"opened","issue":{"url":"https://api.github.com/repos/prometheanfire/gentoo-cloud-prep/issues/12","labels_url":"https://api.github.com/repos/prometheanfire/gentoo-cloud-prep/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/prometheanfire/gentoo-cloud-prep/issues/12/comments","events_url":"https://api.github.com/repos/prometheanfire/gentoo-cloud-prep/issues/12/events","html_url":"https://github.com/prometheanfire/gentoo-cloud-prep/issues/12","id":97248536,"number":12,"title":"/etc/conf.d/hostname heredoc lacks quoting","user":{"login":"hartwork","id":1577132,"avatar_url":"https://avatars.githubusercontent.com/u/1577132?v=3","gravatar_id":"","url":"https://api.github.com/users/hartwork","html_url":"https://github.com/hartwork","followers_url":"https://api.github.com/users/hartwork/followers","following_url":"https://api.github.com/users/hartwork/following{/other_user}","gists_url":"https://api.github.com/users/hartwork/gists{/gist_id}","starred_url":"https://api.github.com/users/hartwork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hartwork/subscriptions","organizations_url":"https://api.github.com/users/hartwork/orgs","repos_url":"https://api.github.com/users/hartwork/repos","events_url":"https://api.github.com/users/hartwork/events{/privacy}","received_events_url":"https://api.github.com/users/hartwork/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-25T19:23:49Z","updated_at":"2015-07-25T19:23:49Z","closed_at":null,"body":"Hi!\r\nThe current code produces this final `/etc/conf.d/hostname` content:\r\n```\r\n# Set to the hostname of this machine\r\nif [ -f /etc/hostname ];then\r\n  hostname=\r\nelse\r\n  hostname=\"localhost\"\r\nfi\r\n```\r\nThat's because\r\n```\r\ncat > /etc/conf.d/hostname << EOL\r\n```\r\nlacks quoting, i.e. `EOL` should be `\"EOL\"` instead at https://github.com/prometheanfire/gentoo-cloud-prep/blob/master/files/prep.sh#L42-L49.\r\n"}}