mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-25 17:42:25 +01:00
fix: test case issue
This commit is contained in:
@@ -81,10 +81,15 @@ func IsPro() bool {
|
||||
}
|
||||
|
||||
func GetWorkspace() string {
|
||||
homedirPath, err := homedir.Dir()
|
||||
if err != nil {
|
||||
log.Warnf("cannot find home directory: %v", err)
|
||||
return DefaultWorkspace
|
||||
}
|
||||
if res := viper.GetString("workspace"); res != "" {
|
||||
return res
|
||||
}
|
||||
return DefaultWorkspace
|
||||
return filepath.Join(homedirPath, DefaultWorkspace)
|
||||
}
|
||||
|
||||
func GetTaskLogPath() string {
|
||||
|
||||
Reference in New Issue
Block a user