@ -81,6 +81,7 @@ type Abra struct {
|
|||||||
// 2. check if abraDir was set in a config file
|
// 2. check if abraDir was set in a config file
|
||||||
// 3. use $HOME/.abra when above two options failed
|
// 3. use $HOME/.abra when above two options failed
|
||||||
func (a Abra) GetAbraDir() string {
|
func (a Abra) GetAbraDir() string {
|
||||||
|
log.Println(os.LookupEnv("ABRA_DIR"))
|
||||||
if dir, exists := os.LookupEnv("ABRA_DIR"); exists && dir != "" {
|
if dir, exists := os.LookupEnv("ABRA_DIR"); exists && dir != "" {
|
||||||
return dir
|
return dir
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user