Skip to content

Commit

Permalink
Allow to set system ruby
Browse files Browse the repository at this point in the history
  • Loading branch information
kzaitsev committed Mar 20, 2016
1 parent 272a27b commit 73c43e8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions set.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,11 @@ func set(c *cli.Context) {
os.Exit(1)
}

if err := checkCandidate(tx, candidate); err != nil {
Print(c, err.Error())
os.Exit(1)
if candidate != "system" {
if err := checkCandidate(tx, candidate); err != nil {
Print(c, err.Error())
os.Exit(1)
}
}

if c.Bool("default") {
Expand Down

0 comments on commit 73c43e8

Please sign in to comment.