{"action":"created","issue":{"url":"https://api.github.com/repos/jamesrwhite/minicron/issues/155","labels_url":"https://api.github.com/repos/jamesrwhite/minicron/issues/155/labels{/name}","comments_url":"https://api.github.com/repos/jamesrwhite/minicron/issues/155/comments","events_url":"https://api.github.com/repos/jamesrwhite/minicron/issues/155/events","html_url":"https://github.com/jamesrwhite/minicron/issues/155","id":114128915,"number":155,"title":"Bundled Minicron run CLI behaving differently","user":{"login":"robinjoseph08","id":2454505,"avatar_url":"https://avatars.githubusercontent.com/u/2454505?v=3","gravatar_id":"","url":"https://api.github.com/users/robinjoseph08","html_url":"https://github.com/robinjoseph08","followers_url":"https://api.github.com/users/robinjoseph08/followers","following_url":"https://api.github.com/users/robinjoseph08/following{/other_user}","gists_url":"https://api.github.com/users/robinjoseph08/gists{/gist_id}","starred_url":"https://api.github.com/users/robinjoseph08/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robinjoseph08/subscriptions","organizations_url":"https://api.github.com/users/robinjoseph08/orgs","repos_url":"https://api.github.com/users/robinjoseph08/repos","events_url":"https://api.github.com/users/robinjoseph08/events{/privacy}","received_events_url":"https://api.github.com/users/robinjoseph08/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jamesrwhite/minicron/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/jamesrwhite/minicron/milestones/17","html_url":"https://github.com/jamesrwhite/minicron/milestones/0.8.1","labels_url":"https://api.github.com/repos/jamesrwhite/minicron/milestones/17/labels","id":1364870,"number":17,"title":"0.8.1","description":null,"creator":{"login":"jamesrwhite","id":640960,"avatar_url":"https://avatars.githubusercontent.com/u/640960?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesrwhite","html_url":"https://github.com/jamesrwhite","followers_url":"https://api.github.com/users/jamesrwhite/followers","following_url":"https://api.github.com/users/jamesrwhite/following{/other_user}","gists_url":"https://api.github.com/users/jamesrwhite/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesrwhite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesrwhite/subscriptions","organizations_url":"https://api.github.com/users/jamesrwhite/orgs","repos_url":"https://api.github.com/users/jamesrwhite/repos","events_url":"https://api.github.com/users/jamesrwhite/events{/privacy}","received_events_url":"https://api.github.com/users/jamesrwhite/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":6,"state":"closed","created_at":"2015-10-19T20:55:54Z","updated_at":"2015-11-08T15:47:20Z","due_on":null,"closed_at":"2015-11-07T23:58:21Z"},"comments":5,"created_at":"2015-10-29T19:32:41Z","updated_at":"2015-11-08T15:51:43Z","closed_at":null,"body":"I downloaded the ZIP of v0.8.0 and was trying to get it set up, but I noticed that all of my `minicron run` commands were failing:\r\n\r\n```bash\r\n$ minicron -v\r\nminicron 0.8.0\r\n\r\n$ minicron run 'echo hello' --dry-run\r\nerror: A valid command to run is required! See `minicron help run`.\r\n```\r\n\r\nI dug a bit further and found out the reason why was because `args` isn't being interpreted as `['echo hello']` as expected, it's being interpreted as `['echo', 'hello']` instead and that causes the exception to be raised here: https://github.com/jamesrwhite/minicron/blob/v0.8.0/lib/minicron/cli/commands.rb#L121-L123.\r\n\r\nInterestingly enough though, when I cloned this repo, set it up, and ran `./bin/minicron run 'echo hello' --dry-run`, it actually worked perfectly fine.\r\n\r\nI'm not sure sure if this is a deployment/binary issue, but it looks like the source is correct."},"comment":{"url":"https://api.github.com/repos/jamesrwhite/minicron/issues/comments/154834798","html_url":"https://github.com/jamesrwhite/minicron/issues/155#issuecomment-154834798","issue_url":"https://api.github.com/repos/jamesrwhite/minicron/issues/155","id":154834798,"user":{"login":"jamesrwhite","id":640960,"avatar_url":"https://avatars.githubusercontent.com/u/640960?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesrwhite","html_url":"https://github.com/jamesrwhite","followers_url":"https://api.github.com/users/jamesrwhite/followers","following_url":"https://api.github.com/users/jamesrwhite/following{/other_user}","gists_url":"https://api.github.com/users/jamesrwhite/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesrwhite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesrwhite/subscriptions","organizations_url":"https://api.github.com/users/jamesrwhite/orgs","repos_url":"https://api.github.com/users/jamesrwhite/repos","events_url":"https://api.github.com/users/jamesrwhite/events{/privacy}","received_events_url":"https://api.github.com/users/jamesrwhite/received_events","type":"User","site_admin":false},"created_at":"2015-11-08T15:51:43Z","updated_at":"2015-11-08T15:51:43Z","body":"I see the issue now, the [wrapper script](https://github.com/jamesrwhite/minicron-build/blob/master/build/packaging/wrappers/minicron.sh#L18) is removing the quotes. So instead of `run 'date -v' --dry-run` minicron is being passed `run date -v --dry-run` which explains this odd behaviour."}}