Skip to content

Commit

Permalink
main: remove generic tmp-dir
Browse files Browse the repository at this point in the history
it's not used, and it causes tmpdirs to be created on shell-completion invocations
  • Loading branch information
Johan Thomsen authored and adamtulinius committed Nov 27, 2019
1 parent 00fa9fa commit a60124b
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions morph.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import (
"github.com/dbcdk/morph/secrets"
"github.com/dbcdk/morph/ssh"
"github.com/dbcdk/morph/utils"
"io/ioutil"
"os"
"os/exec"
"path/filepath"
Expand Down Expand Up @@ -52,7 +51,6 @@ var (
executeCommand []string
keepGCRoot = app.Flag("keep-result", "Keep latest build in .gcroots to prevent it from being garbage collected").Default("False").Bool()

tempDir, tempDirErr = ioutil.TempDir("", "morph-")
assetRoot, assetsErr = assets.Setup()
)

Expand Down Expand Up @@ -216,10 +214,6 @@ func init() {
fmt.Fprintln(os.Stderr, "Error unpacking assets:")
panic(assetsErr)
}

if tempDirErr != nil {
panic(tempDirErr)
}
}

func main() {
Expand Down

0 comments on commit a60124b

Please sign in to comment.