{"action":"opened","issue":{"url":"https://api.github.com/repos/fetzerms/sabcmd/issues/4","labels_url":"https://api.github.com/repos/fetzerms/sabcmd/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/fetzerms/sabcmd/issues/4/comments","events_url":"https://api.github.com/repos/fetzerms/sabcmd/issues/4/events","html_url":"https://github.com/fetzerms/sabcmd/issues/4","id":97351020,"number":4,"title":"./sabcmd: line 71: xmlstarlet: command not found ... could be better","user":{"login":"sanderjo","id":1273502,"avatar_url":"https://avatars.githubusercontent.com/u/1273502?v=3","gravatar_id":"","url":"https://api.github.com/users/sanderjo","html_url":"https://github.com/sanderjo","followers_url":"https://api.github.com/users/sanderjo/followers","following_url":"https://api.github.com/users/sanderjo/following{/other_user}","gists_url":"https://api.github.com/users/sanderjo/gists{/gist_id}","starred_url":"https://api.github.com/users/sanderjo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanderjo/subscriptions","organizations_url":"https://api.github.com/users/sanderjo/orgs","repos_url":"https://api.github.com/users/sanderjo/repos","events_url":"https://api.github.com/users/sanderjo/events{/privacy}","received_events_url":"https://api.github.com/users/sanderjo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-26T21:17:27Z","updated_at":"2015-07-26T21:17:27Z","closed_at":null,"body":"```\r\n$ ./sabcmd status\r\n./sabcmd: line 71: xmlstarlet: command not found\r\n./sabcmd: line 72: xmlstarlet: command not found\r\n+----[ SABcmd ]------------------------------------------------>\r\n| Currently enqueued nzbs:\r\n| \r\n./sabcmd: line 79: [: : integer expression expected\r\n| \r\n| Current transfer speed: /s\r\n+-------------------------------------------------------------->\r\n```\r\nSolved by putting this into sabcmd.sh:\r\n```\r\ntype xmlstarlet >/dev/null 2>&1 || { echo >&2 \"I require xmlstarlet but it's not installed.  Aborting.\"; exit 1 ; }\r\n```\r\n\r\nSame for curl\r\n\r\n"}}