mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-24 22:11:40 +02:00
Fix goarch for m1 + fix boolean conditions
This commit is contained in:
parent
9b07dc719d
commit
5d9950d0a9
@ -4,7 +4,7 @@ flags:
|
|||||||
- -trimpath
|
- -trimpath
|
||||||
|
|
||||||
goos: darwin
|
goos: darwin
|
||||||
goarch: arm
|
goarch: arm64
|
||||||
|
|
||||||
binary: hishtory-{{ .OS }}-{{ .Arch }}
|
binary: hishtory-{{ .OS }}-{{ .Arch }}
|
||||||
|
|
||||||
|
@ -365,7 +365,7 @@ hishtory disable`)
|
|||||||
|
|
||||||
// Query based on after: and cwd:
|
// Query based on after: and cwd:
|
||||||
// TODO: This fails on macos for some reason
|
// TODO: This fails on macos for some reason
|
||||||
if runtime.GOOS == "darwin" && os.Getenv("GITHUB_ACTIONS") != "" {
|
if !(runtime.GOOS == "darwin" && os.Getenv("GITHUB_ACTIONS") != "") {
|
||||||
out = hishtoryQuery(t, `after:1980-07-02 cwd:/tmp`)
|
out = hishtoryQuery(t, `after:1980-07-02 cwd:/tmp`)
|
||||||
if strings.Count(out, "\n") != 3 {
|
if strings.Count(out, "\n") != 3 {
|
||||||
t.Fatalf("hishtory query has the wrong number of lines=%d, out=%#v", strings.Count(out, "\n"), out)
|
t.Fatalf("hishtory query has the wrong number of lines=%d, out=%#v", strings.Count(out, "\n"), out)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user