Skip to content
This repository was archived by the owner on Oct 22, 2021. It is now read-only.

Commit

Permalink
fix: Fixed workDir not matching when workDir is a symbolic link (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
abyss-w authored Aug 3, 2021
1 parent d515174 commit 850966f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ func newStorager(pairs ...typ.Pair) (store *Storage, err error) {
store.features = opt.StorageFeatures
}
if opt.HasWorkDir {
store.workDir = opt.WorkDir
workDir, err := filepath.EvalSymlinks(opt.WorkDir)
if err != nil {
return nil, err
}
store.workDir = workDir
}

// Check and create work dir
Expand Down

0 comments on commit 850966f

Please sign in to comment.