Commit b06608ad authored by Janos Guljas's avatar Janos Guljas

remove unused baseDir from bee cmd

parent a2097c18
...@@ -6,7 +6,6 @@ package cmd ...@@ -6,7 +6,6 @@ package cmd
import ( import (
"errors" "errors"
"os"
"path/filepath" "path/filepath"
"strings" "strings"
...@@ -120,16 +119,3 @@ func (c *command) setHomeDir() (err error) { ...@@ -120,16 +119,3 @@ func (c *command) setHomeDir() (err error) {
c.homeDir = dir c.homeDir = dir
return nil return nil
} }
// baseDir is the directory where the executable is located.
var baseDir = func() string {
path, err := os.Executable()
if err != nil {
panic(err)
}
path, err = filepath.EvalSymlinks(path)
if err != nil {
panic(err)
}
return filepath.Dir(path)
}()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment