Skip to content

Commit

Permalink
fixed integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
d4rkstar committed Jun 2, 2024
1 parent 287f29b commit d4bde6a
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,15 @@ func main() {
setupBinPath(tools.NuvCmd)
}

nuvHome, err := homedir.Expand("~/.nuv")
if err != nil {
log.Fatalf("error: %s", err.Error())
}

setupTmp()
setNuvPwdEnv()
setNuvRootPluginEnv()

// check if first argument is help, info or version: report output and exit
trace("OS args:", os.Args)
args := os.Args
Expand All @@ -149,11 +158,6 @@ func main() {
}
}

nuvHome, err := homedir.Expand("~/.nuv")
if err != nil {
log.Fatalf("error: %s", err.Error())
}

// Check if olaris exists. If not, run `-update` to auto setup
olarisDir := joinpath(joinpath(nuvHome, getNuvBranch()), "olaris")
if !isDir(olarisDir) {
Expand All @@ -169,9 +173,6 @@ func main() {
}
}

setupTmp()
setNuvPwdEnv()
setNuvRootPluginEnv()
if err := setNuvOlarisHash(olarisDir); err != nil {
warn("unable to set NUV_OLARIS...", err.Error())
}
Expand Down

0 comments on commit d4bde6a

Please sign in to comment.