mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-26 01:34:00 -04:00
Fixed misspelling in a comment residing in packer/config_file.go as suggested by @azr.
Co-Authored-By: arizvisa <[email protected]>
This commit is contained in:
co-authored by
arizvisa
parent
ecf45d4740
commit
d876978337
@@ -87,7 +87,10 @@ func configDir() (string, error) {
|
||||
}
|
||||
|
||||
// Given a path, check to see if it's using ~ to reference a user directory.
|
||||
// If so, then replace that component with the requrested user's directory.
|
||||
// If so, then replace that component with the requested user directory.
|
||||
// In "~/", "~" gets replaced by current user's home dir.
|
||||
// In "~root/", "~user" gets replaced by root's home dir.
|
||||
// ~ has to be the first character of path for ExpandUser change it.
|
||||
func ExpandUser(path string) (string, error) {
|
||||
var (
|
||||
u *user.User
|
||||
|
||||
Reference in New Issue
Block a user