We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce53404 commit 3826be3Copy full SHA for 3826be3
util.go
@@ -91,8 +91,7 @@ func insensitiviseMap(m map[string]interface{}) {
91
func absPathify(inPath string) string {
92
jww.INFO.Println("Trying to resolve absolute path to", inPath)
93
94
- if strings.HasPrefix(inPath, "$HOME") &&
95
- (len(inPath) == 5 || inPath[5] == os.PathSeparator) {
+ if inPath == "$HOME" || strings.HasPrefix(inPath, "$HOME"+string(os.PathSeparator)) {
96
inPath = userHomeDir() + inPath[5:]
97
}
98
0 commit comments