mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-26 15:02:00 +02:00
Prefix install with a space so it doesn't get logged by hishtory
This commit is contained in:
parent
0268554903
commit
09ea6be493
@ -301,7 +301,7 @@ yes | hishtory init `+userSecret)
|
|||||||
}
|
}
|
||||||
|
|
||||||
func installHishtory(t *testing.T, tester shellTester, userSecret string) string {
|
func installHishtory(t *testing.T, tester shellTester, userSecret string) string {
|
||||||
out := tester.RunInteractiveShell(t, `/tmp/client install `+userSecret)
|
out := tester.RunInteractiveShell(t, ` /tmp/client install `+userSecret)
|
||||||
r := regexp.MustCompile(`Setting secret hishtory key to (.*)`)
|
r := regexp.MustCompile(`Setting secret hishtory key to (.*)`)
|
||||||
matches := r.FindStringSubmatch(out)
|
matches := r.FindStringSubmatch(out)
|
||||||
if len(matches) != 2 {
|
if len(matches) != 2 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user