Skip to content

Commit 5550a24

Browse files
authored
Merge pull request #74 from louvri/bugfix/gnorm_download
bugfix gnorm download not working
2 parents 60214fc + 2d5c524 commit 5550a24

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

internal/process/process.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func (r *runner) Initialize(path string) error {
5151
if err != nil {
5252
return err
5353
}
54-
err = run("curl", "-L", "-o", "gnorm.tar.gz", "https://github.com/gnormal/gnorm/releases/download/v1.1.1/gnorm_1.1.1_macOS-64bit.tar.gz")
54+
err = run("curl", "-L", "-o", "gnorm.tar.gz", "https://github.com/gnormal/gnorm/releases/latest/download/v1.1.1/gnorm_1.1.1_macOS-64bit.tar.gz")
5555
if err != nil {
5656
return err
5757
}
@@ -71,6 +71,10 @@ func (r *runner) Initialize(path string) error {
7171
if err != nil {
7272
return err
7373
}
74+
err = run("cd", "..")
75+
if err != nil {
76+
return err
77+
}
7478
fmt.Println("gnorm.org is installed")
7579
err = run("go", "get", "github.com/louvri/gosl")
7680
if err != nil {

0 commit comments

Comments
 (0)