mirror of
https://github.com/Superredstone/spotiflac-cli.git
synced 2026-03-07 20:18:07 +01:00
build: fix nix build
This commit is contained in:
5
main.go
5
main.go
@@ -5,6 +5,7 @@ import (
|
|||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
"strings"
|
||||||
|
|
||||||
"github.com/Superredstone/spotiflac-cli/lib"
|
"github.com/Superredstone/spotiflac-cli/lib"
|
||||||
"github.com/urfave/cli/v3"
|
"github.com/urfave/cli/v3"
|
||||||
@@ -16,7 +17,9 @@ func main() {
|
|||||||
|
|
||||||
app := lib.NewApp()
|
app := lib.NewApp()
|
||||||
err := app.Init()
|
err := app.Init()
|
||||||
if err != nil {
|
|
||||||
|
// Ignore this check for nix builds
|
||||||
|
if err != nil && !strings.Contains(os.Args[0], "/nix/store/") {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user