mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-22 02:21:34 +00:00
Merge pull request #188 from justincormack/make-tmp-dir
Create tmp dir in case required
This commit is contained in:
commit
63a5dedd28
@ -10,6 +10,7 @@ import (
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"path"
|
||||
"path/filepath"
|
||||
"sort"
|
||||
"strconv"
|
||||
"strings"
|
||||
@ -145,6 +146,11 @@ func Build(m Moby, w io.Writer, pull bool, tp string) error {
|
||||
MobyDir = defaultMobyConfigDir()
|
||||
}
|
||||
|
||||
// create tmp dir in case needed
|
||||
if err := os.MkdirAll(filepath.Join(MobyDir, "tmp"), 0755); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
iw := tar.NewWriter(w)
|
||||
|
||||
// add additions
|
||||
|
Loading…
Reference in New Issue
Block a user