should bring better more robust bootstrap

This commit is contained in:
Marcell Mars 2021-02-11 03:28:27 +01:00
parent 15b26fbdd2
commit 4a10532c4e
2 changed files with 4 additions and 1 deletions

View file

@ -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

Binary file not shown.