{"action":"created","issue":{"url":"https://api.github.com/repos/postmodern/chruby/issues/327","labels_url":"https://api.github.com/repos/postmodern/chruby/issues/327/labels{/name}","comments_url":"https://api.github.com/repos/postmodern/chruby/issues/327/comments","events_url":"https://api.github.com/repos/postmodern/chruby/issues/327/events","html_url":"https://github.com/postmodern/chruby/issues/327","id":62252396,"number":327,"title":"debian all, and jessie ","user":{"login":"brann","id":4490668,"avatar_url":"https://avatars.githubusercontent.com/u/4490668?v=3","gravatar_id":"","url":"https://api.github.com/users/brann","html_url":"https://github.com/brann","followers_url":"https://api.github.com/users/brann/followers","following_url":"https://api.github.com/users/brann/following{/other_user}","gists_url":"https://api.github.com/users/brann/gists{/gist_id}","starred_url":"https://api.github.com/users/brann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brann/subscriptions","organizations_url":"https://api.github.com/users/brann/orgs","repos_url":"https://api.github.com/users/brann/repos","events_url":"https://api.github.com/users/brann/events{/privacy}","received_events_url":"https://api.github.com/users/brann/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-03-17T01:33:28Z","updated_at":"2015-03-19T08:15:26Z","closed_at":null,"body":"Firstly, for all debian, test/setup has:\r\n```bash\r\n 79         system_version=\"$(< /etc/debian_version | awk -F. '{print $1\".\"$2}')\"\r\n```\r\nThat  line does not do what is expected, on current wheezy or jessie. It puts an empty string into system_version.\r\n \r\nThis is probably what that line intends to be:\r\n```bash\r\nsystem_version=\"$(awk -F. '{print $1\".\"$2}' < /etc/debian_version)\"\r\n```\r\nBut also, it is used to build a url for\r\nhttp://rvm.io/binaries/debian/\r\n\r\nwhich only contains:\r\n```\r\n6/                                                 03-Aug-2013 09:48       -\r\n6.0/                                               03-Aug-2013 09:48       -\r\n6.0.4/                                             03-Aug-2013 09:48       -\r\n7/                                                 08-Mar-2015 02:35       -\r\n7.0/                                               08-Mar-2015 02:35       -\r\njessie_sid/   \r\n```\r\n\r\nSo 7.8 for current wheezy which the corrected code generates, still breaks. A glance in 6 and 6.0.4 reveals it contains the same files with the same md5.  Perhaps there rvm.io should probably be maintaining more comprehensive lists. But you could probably get functional by going with the lead number.\r\n\r\nSo:\r\n```bash\r\nsystem_version=\"$(awk -F. '{print $1}' < /etc/debian_version)\"\r\n```\r\nand finally, since they have no 8 there yet for jessie (8.0 is the current name for jessie test, which is the safer alternative to jessie unstable (jessie_sid which is there), setting jessie_sid for 8 with:\r\n\r\n```bash\r\n 78         system_name=\"debian\"\r\n 79         system_version=\"$(awk -F. '{print $1}' < /etc/debian_version )\"\r\n 80         if [[ $system_version == \"8\" ]]; then\r\n 81           echo \"setting debian jessie 8.0 to jessie_sid because 8.0 didn't exist at the time of writing this\"\r\n 82           system_version=\"jessie_sid\"\r\n 83         fi\r\n```\r\n\r\nWorks around it for now.\r\n\r\nIf you have a preferred path forward let me know. Maybe if rvm.io aren't going to create a comprehensive list of version directories one solution could be to build up a list of candidate versions and try them iteratively if there's a 404 failure? 8.0,8,jessie_sid for example.\r\n\r\n~~Finally after it does download i get errors on tests with shunit2 complaining about bell-style but they pass manually so I'm going to ignore that because I don't know what it's on about.~~ i had set bell-style none in my .bashrc but that should have only been done for login shells, or interactive shells. so my problem."},"comment":{"url":"https://api.github.com/repos/postmodern/chruby/issues/comments/83407630","html_url":"https://github.com/postmodern/chruby/issues/327#issuecomment-83407630","issue_url":"https://api.github.com/repos/postmodern/chruby/issues/327","id":83407630,"user":{"login":"mpapis","id":48054,"avatar_url":"https://avatars.githubusercontent.com/u/48054?v=3","gravatar_id":"","url":"https://api.github.com/users/mpapis","html_url":"https://github.com/mpapis","followers_url":"https://api.github.com/users/mpapis/followers","following_url":"https://api.github.com/users/mpapis/following{/other_user}","gists_url":"https://api.github.com/users/mpapis/gists{/gist_id}","starred_url":"https://api.github.com/users/mpapis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpapis/subscriptions","organizations_url":"https://api.github.com/users/mpapis/orgs","repos_url":"https://api.github.com/users/mpapis/repos","events_url":"https://api.github.com/users/mpapis/events{/privacy}","received_events_url":"https://api.github.com/users/mpapis/received_events","type":"User","site_admin":false},"created_at":"2015-03-19T08:15:26Z","updated_at":"2015-03-19T08:15:26Z","body":"the `head` was added because of https://github.com/wayneeseguin/rvm/issues/3174 => it happened once for Centos, it can happen again - for any system"}}