Skip to content

Commit

Permalink
Fix use command to work with path with tilda for configDir
Browse files Browse the repository at this point in the history
  • Loading branch information
dm3ch committed Jul 4, 2019
1 parent dd3dcd0 commit 58b920a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ func getProfilePath(configDir, profileName string) string {

// Check if file exists
func isFileExist(path string) bool {
_, err := os.Stat(path)
absolutePath, _ := homedir.Expand(path)
_, err := os.Stat(absolutePath)
return !os.IsNotExist(err)
}

0 comments on commit 58b920a

Please sign in to comment.