{"action":"created","comment":{"url":"https://api.github.com/repos/rgbkrk/dvm/pulls/comments/41575608","id":41575608,"diff_hunk":"@@ -636,10 +650,36 @@ dvm() {\n         local VERSION_PATH\n         VERSION_PATH=\"$(dvm_version_path ${VERSION})\"\n \n+\n         if [ -d \"$VERSION_PATH\" ]; then\n-          echo \"$VERSION is already installed.\" >&2\n-          dvm use \"$VERSION\"\n-          return $?\n+          if [ \"$VERSION\" == \"experimental\" ]; then\n+            local DVM_ARCH\n+            local DVM_OS\n+            local DOCKER_BINARY\n+\n+            local checksum_url\n+\n+            DOCKER_BINARY=\"docker\"\n+            DVM_ARCH=\"$(dvm_get_arch)\"\n+            DVM_OS=\"$(dvm_get_os)\"\n+\n+            checksum_url=\"$DVM_GET_EXPERIMENTAL_DOCKER_MIRROR/$DVM_OS/$DVM_ARCH/docker-latest.sha256\"\n+\n+            local sum\n+            sum=`dvm_download -L -s $checksum_url -o - | command awk '{print $1}'`\n+\n+            if ( dvm_checksum \"$VERSION_PATH/docker\" $sum ); then","path":"dvm.sh","position":78,"original_position":78,"commit_id":"7cd67c053dced3bdc60fb545b0b50845f5150597","original_commit_id":"7cd67c053dced3bdc60fb545b0b50845f5150597","user":{"login":"smashwilson","id":17565,"avatar_url":"https://avatars.githubusercontent.com/u/17565?v=3","gravatar_id":"","url":"https://api.github.com/users/smashwilson","html_url":"https://github.com/smashwilson","followers_url":"https://api.github.com/users/smashwilson/followers","following_url":"https://api.github.com/users/smashwilson/following{/other_user}","gists_url":"https://api.github.com/users/smashwilson/gists{/gist_id}","starred_url":"https://api.github.com/users/smashwilson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smashwilson/subscriptions","organizations_url":"https://api.github.com/users/smashwilson/orgs","repos_url":"https://api.github.com/users/smashwilson/repos","events_url":"https://api.github.com/users/smashwilson/events{/privacy}","received_events_url":"https://api.github.com/users/smashwilson/received_events","type":"User","site_admin":false},"body":"I'm assuming `dvm_checksum` is already pretty portable? I know getting `sha256sum` to work the same across OS X and Linux is a bit of a pain.","created_at":"2015-10-08T22:06:52Z","updated_at":"2015-10-08T22:06:52Z","html_url":"https://github.com/rgbkrk/dvm/pull/27#discussion_r41575608","pull_request_url":"https://api.github.com/repos/rgbkrk/dvm/pulls/27","_links":{"self":{"href":"https://api.github.com/repos/rgbkrk/dvm/pulls/comments/41575608"},"html":{"href":"https://github.com/rgbkrk/dvm/pull/27#discussion_r41575608"},"pull_request":{"href":"https://api.github.com/repos/rgbkrk/dvm/pulls/27"}}},"pull_request":{"url":"https://api.github.com/repos/rgbkrk/dvm/pulls/27","id":47201269,"html_url":"https://github.com/rgbkrk/dvm/pull/27","diff_url":"https://github.com/rgbkrk/dvm/pull/27.diff","patch_url":"https://github.com/rgbkrk/dvm/pull/27.patch","issue_url":"https://api.github.com/repos/rgbkrk/dvm/issues/27","number":27,"state":"open","locked":false,"title":"Experimental versions","user":{"login":"rgbkrk","id":836375,"avatar_url":"https://avatars.githubusercontent.com/u/836375?v=3","gravatar_id":"","url":"https://api.github.com/users/rgbkrk","html_url":"https://github.com/rgbkrk","followers_url":"https://api.github.com/users/rgbkrk/followers","following_url":"https://api.github.com/users/rgbkrk/following{/other_user}","gists_url":"https://api.github.com/users/rgbkrk/gists{/gist_id}","starred_url":"https://api.github.com/users/rgbkrk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgbkrk/subscriptions","organizations_url":"https://api.github.com/users/rgbkrk/orgs","repos_url":"https://api.github.com/users/rgbkrk/repos","events_url":"https://api.github.com/users/rgbkrk/events{/privacy}","received_events_url":"https://api.github.com/users/rgbkrk/received_events","type":"User","site_admin":false},"body":"Support experimental Docker binaries. Closes #26.","created_at":"2015-10-08T20:21:06Z","updated_at":"2015-10-08T22:06:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8b9f690a0a0f3b9749c3ff957ef2a023ed815b82","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rgbkrk/dvm/pulls/27/commits","review_comments_url":"https://api.github.com/repos/rgbkrk/dvm/pulls/27/comments","review_comment_url":"https://api.github.com/repos/rgbkrk/dvm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rgbkrk/dvm/issues/27/comments","statuses_url":"https://api.github.com/repos/rgbkrk/dvm/statuses/7cd67c053dced3bdc60fb545b0b50845f5150597","head":{"label":"rgbkrk:experimental-versions","ref":"experimental-versions","sha":"7cd67c053dced3bdc60fb545b0b50845f5150597","user":{"login":"rgbkrk","id":836375,"avatar_url":"https://avatars.githubusercontent.com/u/836375?v=3","gravatar_id":"","url":"https://api.github.com/users/rgbkrk","html_url":"https://github.com/rgbkrk","followers_url":"https://api.github.com/users/rgbkrk/followers","following_url":"https://api.github.com/users/rgbkrk/following{/other_user}","gists_url":"https://api.github.com/users/rgbkrk/gists{/gist_id}","starred_url":"https://api.github.com/users/rgbkrk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgbkrk/subscriptions","organizations_url":"https://api.github.com/users/rgbkrk/orgs","repos_url":"https://api.github.com/users/rgbkrk/repos","events_url":"https://api.github.com/users/rgbkrk/events{/privacy}","received_events_url":"https://api.github.com/users/rgbkrk/received_events","type":"User","site_admin":false},"repo":{"id":42531199,"name":"dvm","full_name":"rgbkrk/dvm","owner":{"login":"rgbkrk","id":836375,"avatar_url":"https://avatars.githubusercontent.com/u/836375?v=3","gravatar_id":"","url":"https://api.github.com/users/rgbkrk","html_url":"https://github.com/rgbkrk","followers_url":"https://api.github.com/users/rgbkrk/followers","following_url":"https://api.github.com/users/rgbkrk/following{/other_user}","gists_url":"https://api.github.com/users/rgbkrk/gists{/gist_id}","starred_url":"https://api.github.com/users/rgbkrk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgbkrk/subscriptions","organizations_url":"https://api.github.com/users/rgbkrk/orgs","repos_url":"https://api.github.com/users/rgbkrk/repos","events_url":"https://api.github.com/users/rgbkrk/events{/privacy}","received_events_url":"https://api.github.com/users/rgbkrk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rgbkrk/dvm","description":"Docker Version Manager","fork":false,"url":"https://api.github.com/repos/rgbkrk/dvm","forks_url":"https://api.github.com/repos/rgbkrk/dvm/forks","keys_url":"https://api.github.com/repos/rgbkrk/dvm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rgbkrk/dvm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rgbkrk/dvm/teams","hooks_url":"https://api.github.com/repos/rgbkrk/dvm/hooks","issue_events_url":"https://api.github.com/repos/rgbkrk/dvm/issues/events{/number}","events_url":"https://api.github.com/repos/rgbkrk/dvm/events","assignees_url":"https://api.github.com/repos/rgbkrk/dvm/assignees{/user}","branches_url":"https://api.github.com/repos/rgbkrk/dvm/branches{/branch}","tags_url":"https://api.github.com/repos/rgbkrk/dvm/tags","blobs_url":"https://api.github.com/repos/rgbkrk/dvm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rgbkrk/dvm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rgbkrk/dvm/git/refs{/sha}","trees_url":"https://api.github.com/repos/rgbkrk/dvm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rgbkrk/dvm/statuses/{sha}","languages_url":"https://api.github.com/repos/rgbkrk/dvm/languages","stargazers_url":"https://api.github.com/repos/rgbkrk/dvm/stargazers","contributors_url":"https://api.github.com/repos/rgbkrk/dvm/contributors","subscribers_url":"https://api.github.com/repos/rgbkrk/dvm/subscribers","subscription_url":"https://api.github.com/repos/rgbkrk/dvm/subscription","commits_url":"https://api.github.com/repos/rgbkrk/dvm/commits{/sha}","git_commits_url":"https://api.github.com/repos/rgbkrk/dvm/git/commits{/sha}","comments_url":"https://api.github.com/repos/rgbkrk/dvm/comments{/number}","issue_comment_url":"https://api.github.com/repos/rgbkrk/dvm/issues/comments{/number}","contents_url":"https://api.github.com/repos/rgbkrk/dvm/contents/{+path}","compare_url":"https://api.github.com/repos/rgbkrk/dvm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rgbkrk/dvm/merges","archive_url":"https://api.github.com/repos/rgbkrk/dvm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rgbkrk/dvm/downloads","issues_url":"https://api.github.com/repos/rgbkrk/dvm/issues{/number}","pulls_url":"https://api.github.com/repos/rgbkrk/dvm/pulls{/number}","milestones_url":"https://api.github.com/repos/rgbkrk/dvm/milestones{/number}","notifications_url":"https://api.github.com/repos/rgbkrk/dvm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rgbkrk/dvm/labels{/name}","releases_url":"https://api.github.com/repos/rgbkrk/dvm/releases{/id}","created_at":"2015-09-15T16:18:09Z","updated_at":"2015-09-30T03:31:09Z","pushed_at":"2015-10-08T20:59:16Z","git_url":"git://github.com/rgbkrk/dvm.git","ssh_url":"git@github.com:rgbkrk/dvm.git","clone_url":"https://github.com/rgbkrk/dvm.git","svn_url":"https://github.com/rgbkrk/dvm","homepage":null,"size":566,"stargazers_count":17,"watchers_count":17,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":8,"forks":1,"open_issues":8,"watchers":17,"default_branch":"master"}},"base":{"label":"rgbkrk:master","ref":"master","sha":"1e93b6ac2eb4dbe06d6bc990da7a7bf4a00a6fa6","user":{"login":"rgbkrk","id":836375,"avatar_url":"https://avatars.githubusercontent.com/u/836375?v=3","gravatar_id":"","url":"https://api.github.com/users/rgbkrk","html_url":"https://github.com/rgbkrk","followers_url":"https://api.github.com/users/rgbkrk/followers","following_url":"https://api.github.com/users/rgbkrk/following{/other_user}","gists_url":"https://api.github.com/users/rgbkrk/gists{/gist_id}","starred_url":"https://api.github.com/users/rgbkrk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgbkrk/subscriptions","organizations_url":"https://api.github.com/users/rgbkrk/orgs","repos_url":"https://api.github.com/users/rgbkrk/repos","events_url":"https://api.github.com/users/rgbkrk/events{/privacy}","received_events_url":"https://api.github.com/users/rgbkrk/received_events","type":"User","site_admin":false},"repo":{"id":42531199,"name":"dvm","full_name":"rgbkrk/dvm","owner":{"login":"rgbkrk","id":836375,"avatar_url":"https://avatars.githubusercontent.com/u/836375?v=3","gravatar_id":"","url":"https://api.github.com/users/rgbkrk","html_url":"https://github.com/rgbkrk","followers_url":"https://api.github.com/users/rgbkrk/followers","following_url":"https://api.github.com/users/rgbkrk/following{/other_user}","gists_url":"https://api.github.com/users/rgbkrk/gists{/gist_id}","starred_url":"https://api.github.com/users/rgbkrk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgbkrk/subscriptions","organizations_url":"https://api.github.com/users/rgbkrk/orgs","repos_url":"https://api.github.com/users/rgbkrk/repos","events_url":"https://api.github.com/users/rgbkrk/events{/privacy}","received_events_url":"https://api.github.com/users/rgbkrk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rgbkrk/dvm","description":"Docker Version Manager","fork":false,"url":"https://api.github.com/repos/rgbkrk/dvm","forks_url":"https://api.github.com/repos/rgbkrk/dvm/forks","keys_url":"https://api.github.com/repos/rgbkrk/dvm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rgbkrk/dvm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rgbkrk/dvm/teams","hooks_url":"https://api.github.com/repos/rgbkrk/dvm/hooks","issue_events_url":"https://api.github.com/repos/rgbkrk/dvm/issues/events{/number}","events_url":"https://api.github.com/repos/rgbkrk/dvm/events","assignees_url":"https://api.github.com/repos/rgbkrk/dvm/assignees{/user}","branches_url":"https://api.github.com/repos/rgbkrk/dvm/branches{/branch}","tags_url":"https://api.github.com/repos/rgbkrk/dvm/tags","blobs_url":"https://api.github.com/repos/rgbkrk/dvm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rgbkrk/dvm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rgbkrk/dvm/git/refs{/sha}","trees_url":"https://api.github.com/repos/rgbkrk/dvm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rgbkrk/dvm/statuses/{sha}","languages_url":"https://api.github.com/repos/rgbkrk/dvm/languages","stargazers_url":"https://api.github.com/repos/rgbkrk/dvm/stargazers","contributors_url":"https://api.github.com/repos/rgbkrk/dvm/contributors","subscribers_url":"https://api.github.com/repos/rgbkrk/dvm/subscribers","subscription_url":"https://api.github.com/repos/rgbkrk/dvm/subscription","commits_url":"https://api.github.com/repos/rgbkrk/dvm/commits{/sha}","git_commits_url":"https://api.github.com/repos/rgbkrk/dvm/git/commits{/sha}","comments_url":"https://api.github.com/repos/rgbkrk/dvm/comments{/number}","issue_comment_url":"https://api.github.com/repos/rgbkrk/dvm/issues/comments{/number}","contents_url":"https://api.github.com/repos/rgbkrk/dvm/contents/{+path}","compare_url":"https://api.github.com/repos/rgbkrk/dvm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rgbkrk/dvm/merges","archive_url":"https://api.github.com/repos/rgbkrk/dvm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rgbkrk/dvm/downloads","issues_url":"https://api.github.com/repos/rgbkrk/dvm/issues{/number}","pulls_url":"https://api.github.com/repos/rgbkrk/dvm/pulls{/number}","milestones_url":"https://api.github.com/repos/rgbkrk/dvm/milestones{/number}","notifications_url":"https://api.github.com/repos/rgbkrk/dvm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rgbkrk/dvm/labels{/name}","releases_url":"https://api.github.com/repos/rgbkrk/dvm/releases{/id}","created_at":"2015-09-15T16:18:09Z","updated_at":"2015-09-30T03:31:09Z","pushed_at":"2015-10-08T20:59:16Z","git_url":"git://github.com/rgbkrk/dvm.git","ssh_url":"git@github.com:rgbkrk/dvm.git","clone_url":"https://github.com/rgbkrk/dvm.git","svn_url":"https://github.com/rgbkrk/dvm","homepage":null,"size":566,"stargazers_count":17,"watchers_count":17,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":8,"forks":1,"open_issues":8,"watchers":17,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rgbkrk/dvm/pulls/27"},"html":{"href":"https://github.com/rgbkrk/dvm/pull/27"},"issue":{"href":"https://api.github.com/repos/rgbkrk/dvm/issues/27"},"comments":{"href":"https://api.github.com/repos/rgbkrk/dvm/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/rgbkrk/dvm/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/rgbkrk/dvm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rgbkrk/dvm/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/rgbkrk/dvm/statuses/7cd67c053dced3bdc60fb545b0b50845f5150597"}}}}