{"pull_request":{"title":"shell script for usher","user":{"login":"robertbasic","id":166625,"url":"https://api.github.com/users/robertbasic","avatar_url":"https://secure.gravatar.com/avatar/6d9ae403ee630c0e51ec79105a3b7af1?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"6d9ae403ee630c0e51ec79105a3b7af1"},"created_at":"2011-12-28T18:49:54Z","merged_at":null,"review_comments":0,"state":"open","updated_at":"2011-12-28T18:49:54Z","id":635185,"patch_url":"https://github.com/enygma/usher/pull/8.patch","closed_at":null,"html_url":"https://github.com/enygma/usher/pull/8","deletions":1,"mergeable":null,"base":{"user":{"login":"enygma","id":66796,"url":"https://api.github.com/users/enygma","avatar_url":"https://secure.gravatar.com/avatar/224dac66704579d941e927965a6220a2?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"224dac66704579d941e927965a6220a2"},"ref":"master","sha":"0858ff7d521cbc91a629928486b2b3599ff3ff1d","repo":{"created_at":"2011-12-10T05:23:00Z","git_url":"git://github.com/enygma/usher.git","watchers":6,"open_issues":3,"fork":false,"updated_at":"2011-12-28T17:33:11Z","id":2952167,"language":"PHP","html_url":"https://github.com/enygma/usher","name":"usher","description":"Task execution system (general)","master_branch":null,"url":"https://api.github.com/repos/enygma/usher","pushed_at":"2011-12-28T17:31:29Z","forks":3,"ssh_url":"git@github.com:enygma/usher.git","clone_url":"https://github.com/enygma/usher.git","owner":{"login":"enygma","id":66796,"url":"https://api.github.com/users/enygma","avatar_url":"https://secure.gravatar.com/avatar/224dac66704579d941e927965a6220a2?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"224dac66704579d941e927965a6220a2"},"homepage":"","size":128,"private":false,"svn_url":"https://github.com/enygma/usher"},"label":"enygma:master"},"issue_url":"https://github.com/enygma/usher/issues/8","body":"Hi!\r\n\r\nI've played around in the shell a bit and tried to create something for #6 (even though my branch says feature/7... sorry about that :))\r\n\r\nAnyway... The script tries to locate the PHP binary by using the \"which\" command. Hopefully there are not many distros without that command out there. Any error \"which\" might produce, is discarded.\r\n\r\nThe first check is there for cases when the which command returns nothing/null (that's why the $PHP_BINPATH is quoted in double quotes).\r\n\r\nThe second check is there to see if $PHP_BINPATH is a file and is an executable.\r\n\r\nIf everything seems OK, usher.php is called. The \"$@\" part is there to pass any command line arguments down to usher.php, so things like ./usher --quiet still works.\r\n\r\nTested on Fedora and Ubuntu, will test on a FreeBSD over the weekend.\r\n\r\nI know it's far from perfect, but it's a start :)","number":8,"commits":1,"additions":14,"url":"https://api.github.com/repos/enygma/usher/pulls/8","diff_url":"https://github.com/enygma/usher/pull/8.diff","merged_by":null,"_links":{"review_comments":{"href":"https://api.github.com/repos/enygma/usher/pulls/8/comments"},"html":{"href":"https://github.com/enygma/usher/pull/8"},"self":{"href":"https://api.github.com/repos/enygma/usher/pulls/8"},"comments":{"href":"https://api.github.com/repos/enygma/usher/issues/8/comments"}},"comments":0,"head":{"user":{"login":"robertbasic","id":166625,"url":"https://api.github.com/users/robertbasic","avatar_url":"https://secure.gravatar.com/avatar/6d9ae403ee630c0e51ec79105a3b7af1?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"6d9ae403ee630c0e51ec79105a3b7af1"},"ref":"feature/7","sha":"d8f22aef655ec2344fa3440ede2c7e3d716be353","repo":{"created_at":"2011-12-27T16:10:18Z","git_url":"git://github.com/robertbasic/usher.git","watchers":1,"open_issues":0,"fork":true,"updated_at":"2011-12-28T18:40:29Z","id":3057429,"language":"PHP","html_url":"https://github.com/robertbasic/usher","name":"usher","description":"Task execution system (general)","master_branch":null,"url":"https://api.github.com/repos/robertbasic/usher","pushed_at":"2011-12-28T18:40:29Z","forks":0,"ssh_url":"git@github.com:robertbasic/usher.git","clone_url":"https://github.com/robertbasic/usher.git","owner":{"login":"robertbasic","id":166625,"url":"https://api.github.com/users/robertbasic","avatar_url":"https://secure.gravatar.com/avatar/6d9ae403ee630c0e51ec79105a3b7af1?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"6d9ae403ee630c0e51ec79105a3b7af1"},"homepage":"","size":100,"private":false,"svn_url":"https://github.com/robertbasic/usher"},"label":"robertbasic:feature/7"},"merged":false,"changed_files":2},"number":8,"action":"opened"}