diff --git a/client/client.go b/client/client.go index 7492bd2..9fb907e 100644 --- a/client/client.go +++ b/client/client.go @@ -152,7 +152,7 @@ func export() { lib.CheckFatalError(retrieveAdditionalEntriesFromRemote(db)) data, err := shared.Search(db, "", 0) lib.CheckFatalError(err) - for i := len(data)-1; i >= 0; i-- { + for i := len(data) - 1; i >= 0; i-- { fmt.Println(data[i].Command) } } diff --git a/client/client_test.go b/client/client_test.go index 7aef4ba..135923b 100644 --- a/client/client_test.go +++ b/client/client_test.go @@ -2,15 +2,15 @@ package main import ( "bytes" + "encoding/json" "fmt" "io/ioutil" + "net/http" "os" "os/exec" "regexp" "strings" "testing" - "encoding/json" - "net/http" "github.com/ddworken/hishtory/shared" ) @@ -28,7 +28,7 @@ func RunInteractiveBashCommands(t *testing.T, script string) string { if strings.Contains(outStr, "hishtory fatal error:") { t.Fatalf("Ran command, but hishtory had a fatal error! out=%#v", outStr) } - return outStr + return outStr } func TestIntegration(t *testing.T) { @@ -138,7 +138,7 @@ func TestIntegrationWithNewDevice(t *testing.T) { } // Manually submit an event that isn't in the local DB, and then we'll - // check if we see it when we do a query without ever having done an init + // check if we see it when we do a query without ever having done an init newEntry := shared.MakeFakeHistoryEntry("othercomputer") encEntry, err := shared.EncryptHistoryEntry(userSecret, newEntry) shared.Check(t, err) @@ -149,7 +149,7 @@ func TestIntegrationWithNewDevice(t *testing.T) { if resp.StatusCode != 200 { t.Fatalf("failed to submit result to backend, status_code=%d", resp.StatusCode) } - // Now check if that is in there when we do hishtory query + // Now check if that is in there when we do hishtory query out = RunInteractiveBashCommands(t, `hishtory query`) if !strings.Contains(out, "othercomputer") { t.Fatalf("hishtory query doesn't contain cmd run on another machine! out=%#v", out) @@ -242,4 +242,3 @@ func testIntegration(t *testing.T) string { return userSecret } - diff --git a/web/landing/www/index.html b/web/landing/www/index.html index 35cc005..a92413e 100644 --- a/web/landing/www/index.html +++ b/web/landing/www/index.html @@ -47,7 +47,7 @@ Setup @@ -86,7 +86,7 @@
@@ -95,11 +95,11 @@

@@ -107,9 +107,9 @@
To install hishtory on your first machine:
       curl -o hishtory https://hishtory.dev/binaries/hishtory-linux; chmod +x hishtory; ./hishtory install
-
+

To install hishtory on your second machine, you must first retrieve your secret key from first first machine. To do so, run hishtory status and copy your "Secret Key". -
Then to install it on your second machine: + Then to install it on your second machine:
       curl -o hishtory https://hishtory.dev/binaries/hishtory-linux; chmod +x hishtory; ./hishtory install $YOUR_HISHTORY_SECRET
@@ -117,8 +117,7 @@

- -
+