Skip to content

Commit

Permalink
v0.1.28
Browse files Browse the repository at this point in the history
  • Loading branch information
lassejlv committed Jan 15, 2025
1 parent faf6d81 commit 05a2081
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,4 @@ Then run `action --help` and to upgrade in the feature. Use `action --upgrade`

#### The other way

```bash
curl -fsSL https://raw.githubusercontent.com/lassejlv/action/refs/heads/main/scripts/install.sh | bash
```
Download a binary for your OS from the [releases](github.com/lassejlv/action/releases) page.
2 changes: 1 addition & 1 deletion utils/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
)

var ConfigFileName string = ".actions"
var CurrentVersion string = "0.1.27"
var CurrentVersion string = "0.1.28"

type CommandsArray struct {
Name string
Expand Down
5 changes: 3 additions & 2 deletions utils/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"fmt"
"net/http"
"os"
"os/exec"

"github.com/Masterminds/semver"
"github.com/rs/zerolog/log"
Expand All @@ -17,10 +18,10 @@ func Upgrade() {
os.Exit(1)
}

isInstalledWithGoGet := os.Getenv("GOBIN") != ""
isInstalledWithGoGet := exec.Command("go", "list", "-m", "-f", "{{.Path}}").Run() == nil

if !isInstalledWithGoGet {
log.Error().Msg("This command is only available for go get installations for now.")
log.Printf("This command is only available for go get installations for now.")
os.Exit(1)
}

Expand Down

0 comments on commit 05a2081

Please sign in to comment.