This commit is contained in:
@ -17,9 +17,8 @@ import (
|
||||
// getBaseDir retrieves the Abra base directory.
|
||||
func getBaseDir() string {
|
||||
home := os.ExpandEnv("$HOME/.abra")
|
||||
if _, exists := os.LookupEnv("ABRA_TEST"); exists {
|
||||
home = os.ExpandEnv("$HOME/.abra_test")
|
||||
logrus.Debugf("running under test mode as requested (ABRA_TEST)")
|
||||
if customAbraDir, exists := os.LookupEnv("ABRA_DIR"); exists && customAbraDir != "" {
|
||||
home = customAbraDir
|
||||
}
|
||||
return home
|
||||
}
|
||||
|
Reference in New Issue
Block a user