More fixes for github action failures + add link to where to file a bug

This commit is contained in:
David Dworken
2022-11-13 06:42:37 -08:00
parent e6b1bfd589
commit 3e2373d76e
3 changed files with 3 additions and 9 deletions

View File

@ -17,8 +17,5 @@ ghaction-runner-hostname 0 echo thisisrecorded
ghaction-runner-hostname 0 hishtory enable
ghaction-runner-hostname 0 echo bar
ghaction-runner-hostname 0 echo foo
ghaction-runner-hostname 1 ls /foo
ghaction-runner-hostname 1 ls /bar
ghaction-runner-hostname 1 ls /a
ghaction-runner-hostname 0 hishtory query
ghaction-runner-hostname 0 hishtory status

View File

@ -311,11 +311,11 @@ func parseCrossPlatformInt(data string) (int64, error) {
func getLastCommand(history string) (string, error) {
split := strings.SplitN(strings.TrimSpace(history), " ", 2)
if len(split) <= 1 {
return "", fmt.Errorf("got unexpected bash history line: %#v, please open a bug", history)
return "", fmt.Errorf("got unexpected bash history line: %#v, please open a bug at github.com/ddworken/hishtory", history)
}
split = strings.SplitN(split[1], " ", 2)
if len(split) <= 1 {
return "", fmt.Errorf("got unexpected bash history line: %#v, please open a bug", history)
return "", fmt.Errorf("got unexpected bash history line: %#v, please open a bug at github.com/ddworken/hishtory", history)
}
return split[1], nil
}