mirror of
https://github.com/beego/bee.git
synced 2024-11-22 05:00:54 +00:00
Merge pull request #331 from amrfaissal/fix-330
Removes the temp dir once bee pack is done
This commit is contained in:
commit
71e23417c6
7
pack.go
7
pack.go
@ -484,6 +484,13 @@ func packApp(cmd *Command, args []string) int {
|
||||
tmpdir := path.Join(os.TempDir(), "beePack-"+str)
|
||||
|
||||
os.Mkdir(tmpdir, 0700)
|
||||
defer func() {
|
||||
// Remove the tmpdir once bee pack is done
|
||||
err := os.RemoveAll(tmpdir)
|
||||
if err != nil {
|
||||
logger.Error("Failed to remove the generated temp dir")
|
||||
}
|
||||
}()
|
||||
|
||||
if build {
|
||||
logger.Info("Building application...")
|
||||
|
Loading…
Reference in New Issue
Block a user