Expand env before making builddir

This commit is contained in:
morganamilo 2018-09-04 23:05:35 +01:00
parent a109ea480c
commit 0e695468b8
No known key found for this signature in database
GPG Key ID: 6FE9E7996B0B082E
2 changed files with 4 additions and 6 deletions

6
cmd.go
View File

@ -128,12 +128,6 @@ If no operation is provided -Y will be assumed`)
}
func handleCmd() (err error) {
if shouldSaveConfig {
config.saveConfig()
}
config.expandEnv()
if cmdArgs.existsArg("h", "help") {
err = handleHelp()
return

View File

@ -202,6 +202,10 @@ func main() {
exitOnError(initHomeDirs())
exitOnError(initConfig())
exitOnError(cmdArgs.parseCommandLine())
if shouldSaveConfig {
config.saveConfig()
}
config.expandEnv()
exitOnError(initBuildDir())
exitOnError(initVCS())
exitOnError(initAlpm())