should bring better more robust bootstrap
This commit is contained in:
parent
15b26fbdd2
commit
4a10532c4e
2 changed files with 4 additions and 1 deletions
5
main.go
5
main.go
|
@ -22,7 +22,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
version = "20.12.23"
|
version = "21.02.01"
|
||||||
)
|
)
|
||||||
|
|
||||||
func check(e error) {
|
func check(e error) {
|
||||||
|
@ -162,6 +162,9 @@ func main() {
|
||||||
logLines = logLines + fmt.Sprintf("to be moved to: %s\n", filepath.Join(outDir, outSandpointsDir))
|
logLines = logLines + fmt.Sprintf("to be moved to: %s\n", filepath.Join(outDir, outSandpointsDir))
|
||||||
tmpHugoGiteaPath := filepath.Join(os.TempDir(), fmt.Sprintf("sandpoints_hugo_%06d", rand.Intn(100001)))
|
tmpHugoGiteaPath := filepath.Join(os.TempDir(), fmt.Sprintf("sandpoints_hugo_%06d", rand.Intn(100001)))
|
||||||
|
|
||||||
|
err = os.MkdirAll(filepath.Join(outDir, outSandpointsDir), 0755)
|
||||||
|
check(err)
|
||||||
|
|
||||||
err = os.RemoveAll(tmpHugoGiteaPath)
|
err = os.RemoveAll(tmpHugoGiteaPath)
|
||||||
check(err)
|
check(err)
|
||||||
|
|
||||||
|
|
BIN
sphook
BIN
sphook
Binary file not shown.
Loading…
Add table
Reference in a new issue