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"
|
||||
"os"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/Superredstone/spotiflac-cli/lib"
|
||||
"github.com/urfave/cli/v3"
|
||||
@@ -16,7 +17,9 @@ func main() {
|
||||
|
||||
app := lib.NewApp()
|
||||
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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user