project-ops: fix key extraction (handle tk_/ol_api_ prefixes with underscore)
This commit is contained in:
@@ -18,8 +18,8 @@ Keys are stored in the machine's secrets file. Read them at runtime, never print
|
||||
- **Outline** key: `OL_API_KEY` in `~/.config/environment.d/10-secrets.conf`
|
||||
|
||||
```bash
|
||||
VIKUNJA_TOKEN=$(grep -oE 'VIKUNJA_TOKEN=[A-Za-z0-9]+' ~/.config/environment.d/10-secrets.conf | cut -d= -f2)
|
||||
OL_API_KEY=$(grep -oE 'OL_API_KEY=[A-Za-z0-9]+' ~/.config/environment.d/10-secrets.conf | cut -d= -f2)
|
||||
VIKUNJA_TOKEN=$(grep "^VIKUNJA_TOKEN=" ~/.config/environment.d/10-secrets.conf | head -1 | cut -d= -f2- | tr -d '"' | tr -d ' ')
|
||||
OL_API_KEY=$(grep "^OL_API_KEY=" ~/.config/environment.d/10-secrets.conf | head -1 | cut -d= -f2- | tr -d '"' | tr -d ' ')
|
||||
```
|
||||
|
||||
If token 401s: re-source or confirm the machine's secrets were pulled (`git -C ~/.agents pull`).
|
||||
|
||||
Reference in New Issue
Block a user