Replaced ContainsRune() usage with IndexRune() for portability

This commit is contained in:
Julien Kauffmann 2017-01-24 09:08:30 -05:00
parent 4257721a8b
commit 1803d14360
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ func absPathify(inPath string) string {
inPath = filepath.FromSlash(inPath) inPath = filepath.FromSlash(inPath)
if strings.ContainsRune(inPath, '$') { if strings.IndexRune(inPath, '$') >= 0 {
inPath = os.Expand(inPath, getEnv) inPath = os.Expand(inPath, getEnv)
} }