{"action":"created","issue":{"url":"https://api.github.com/repos/hephaest0s/usbkill/issues/64","labels_url":"https://api.github.com/repos/hephaest0s/usbkill/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/hephaest0s/usbkill/issues/64/comments","events_url":"https://api.github.com/repos/hephaest0s/usbkill/issues/64/events","html_url":"https://github.com/hephaest0s/usbkill/issues/64","id":91062675,"number":64,"title":"OS X shutdown can fail","user":{"login":"rautamiekka","id":788572,"avatar_url":"https://avatars.githubusercontent.com/u/788572?v=3","gravatar_id":"","url":"https://api.github.com/users/rautamiekka","html_url":"https://github.com/rautamiekka","followers_url":"https://api.github.com/users/rautamiekka/followers","following_url":"https://api.github.com/users/rautamiekka/following{/other_user}","gists_url":"https://api.github.com/users/rautamiekka/gists{/gist_id}","starred_url":"https://api.github.com/users/rautamiekka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rautamiekka/subscriptions","organizations_url":"https://api.github.com/users/rautamiekka/orgs","repos_url":"https://api.github.com/users/rautamiekka/repos","events_url":"https://api.github.com/users/rautamiekka/events{/privacy}","received_events_url":"https://api.github.com/users/rautamiekka/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-25T20:09:46Z","updated_at":"2015-07-12T08:00:38Z","closed_at":"2015-07-12T08:00:38Z","body":"Since the script executes 3 commands in succession on OS X but cares about the ending signal, it can fail, that's what the `&&` means: execute next command only if the command on the left side finished problemlessly, so I'd replace them with `;` to make the commands execute in order regardless of what.\r\n\r\nOf course, the same applies to any other single line of commands, so always use `;` rather than `&&` unless you -know- the next command must execute only if the previous one succeeds. Be warned that I read that the precedence of `&&` and `||` (execute next only if previous one fails) isn't same, so running a pseudocode like\r\n\r\n\r\n    quit && kill || echo\r\n\r\n\r\nmeans\r\n\r\n\r\n    quit AND kill IF quit SUCCEEDS, OTHERWISE kill AND echo\r\n"},"comment":{"url":"https://api.github.com/repos/hephaest0s/usbkill/issues/comments/120700377","html_url":"https://github.com/hephaest0s/usbkill/issues/64#issuecomment-120700377","issue_url":"https://api.github.com/repos/hephaest0s/usbkill/issues/64","id":120700377,"user":{"login":"hephaest0s","id":11010193,"avatar_url":"https://avatars.githubusercontent.com/u/11010193?v=3","gravatar_id":"","url":"https://api.github.com/users/hephaest0s","html_url":"https://github.com/hephaest0s","followers_url":"https://api.github.com/users/hephaest0s/followers","following_url":"https://api.github.com/users/hephaest0s/following{/other_user}","gists_url":"https://api.github.com/users/hephaest0s/gists{/gist_id}","starred_url":"https://api.github.com/users/hephaest0s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hephaest0s/subscriptions","organizations_url":"https://api.github.com/users/hephaest0s/orgs","repos_url":"https://api.github.com/users/hephaest0s/repos","events_url":"https://api.github.com/users/hephaest0s/events{/privacy}","received_events_url":"https://api.github.com/users/hephaest0s/received_events","type":"User","site_admin":false},"created_at":"2015-07-12T08:00:38Z","updated_at":"2015-07-12T08:00:38Z","body":"Thanks.\r\n\r\nFixed in version 1.0-rc.3"}}