Skip to content

Commit

Permalink
Expand env before making builddir
Browse files Browse the repository at this point in the history
  • Loading branch information
Morganamilo committed Sep 4, 2018
1 parent a109ea4 commit 0e69546
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 0 additions & 6 deletions cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 0e69546

Please sign in to comment.