Skip to content

Commit 9f4f0dc

Browse files
committed
Stop linkerd from creating folder during get.sh
Fixes an issue seen by Kah Keng Tay and "Joe" whilst trying the workshop. Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
1 parent 4def417 commit 9f4f0dc

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

cmd/apps/linkerd_app.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ func getUserPath() (string, error) {
175175
}
176176

177177
func getExportPath() string {
178-
userPath, _ := getUserPath()
178+
userPath := config.GetUserDir()
179179
return path.Join(userPath, "bin/")
180180
}
181181

pkg/config/config.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ import (
99
// K3sVersion default version
1010
const K3sVersion = "v1.17.2+k3s1"
1111

12+
func GetUserDir() string {
13+
home := os.Getenv("HOME")
14+
root := fmt.Sprintf("%s/.arkade/", home)
15+
return root
16+
}
17+
1218
func InitUserDir() (string, error) {
1319
home := os.Getenv("HOME")
1420
root := fmt.Sprintf("%s/.arkade/", home)

0 commit comments

Comments
 (0)