Add -- for offline install to fix flags

This commit is contained in:
David Dworken 2024-10-19 01:24:42 -07:00
parent d22bba2834
commit a83386a812
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -160,7 +160,7 @@ hishtory config-set filter-duplicate-commands true
If you don't need the ability to sync your shell history, you can install hiSHtory in offline mode:
```sh
curl https://hishtory.dev/install.py | python3 - --offline
curl https://hishtory.dev/install.py | python3 - -- --offline
```
This disables syncing completely so that the client will not rely on the hiSHtory backend at all. You can also change the syncing status via `hishtory syncing enable` or `hishtory syncing disable`.

View File

@ -1101,7 +1101,7 @@ func testInstallViaPythonScriptChild(t *testing.T, tester shellTester, onlineSta
if onlineStatus == Offline {
additionalFlags = "--offline"
}
out := tester.RunInteractiveShell(t, `curl https://hishtory.dev/install.py | python3 -`+additionalFlags)
out := tester.RunInteractiveShell(t, `curl https://hishtory.dev/install.py | python3 - -- `+additionalFlags)
require.Contains(t, out, "Succesfully installed hishtory")
r := regexp.MustCompile(`Setting secret hishtory key to (.*)`)
matches := r.FindStringSubmatch(out)