Skip to content

Commit

Permalink
Merge pull request #557 from mikethebos/master
Browse files Browse the repository at this point in the history
allow any alias
  • Loading branch information
willcohen authored Feb 18, 2021
2 parents 912faea + 3adc857 commit e741b9c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions command/alias.go
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
package command

import (
"errors"
"github.com/shyiko/jabba/cfg"
"io/ioutil"
"os"
"path/filepath"
)

func SetAlias(name string, ver string) (err error) {
if name != "default" {
return errors.New("At this point only 'default' alias is allowed")
}
if ver == "" {
err = os.Remove(filepath.Join(cfg.Dir(), name+".alias"))
} else {
Expand Down

0 comments on commit e741b9c

Please sign in to comment.