Skip to content

Commit 1a6125a

Browse files
committed
Fixed create root dir
Signed-off-by: Vishal Rana <vr@labstack.com>
1 parent 8fb4f56 commit 1a6125a

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
IMAGE = labstack/tunnel
2-
VERSION = 0.3.0
2+
VERSION = 0.3.1
33

44
publish:
55
git tag v$(VERSION)

cmd/root.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ func initialize() {
4141
log.Fatalf("failed to find the home directory: %v", err)
4242
}
4343
root := filepath.Join(dir, ".tunnel")
44+
if err = os.MkdirAll(root, 0755); err != nil {
45+
log.Fatalf("failed to create root directory: %v", err)
46+
}
4447

4548
// Add to viper
4649
viper.Set("root", root)

cmd/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
)
2323

2424
const (
25-
version = "v0.3.0"
25+
version = "v0.3.1"
2626
)
2727

2828
var versionCmd = &cobra.Command{

common/common.go

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)