mirror of
https://github.com/ddworken/hishtory.git
synced 2024-12-27 01:08:53 +01:00
Add -- for offline install to fix flags
This commit is contained in:
parent
d22bba2834
commit
a83386a812
@ -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`.
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user