docs: fix trailing slash in pair-qr curl command
This commit is contained in:
parent
ad95ea3efd
commit
3a4a6af942
|
|
@ -81,7 +81,7 @@ curl -s "http://<SIDECAR_URL>/pair-qr?token=<TOKEN>"
|
|||
Or one-liner (reads token from tmux pane automatically):
|
||||
```bash
|
||||
TOKEN=$(tmux capture-pane -t pi-sidecar -p | grep -o 'token=[^ ]*' | head -1 | cut -d= -f2) && \
|
||||
SIDECAR=$(tmux capture-pane -t pi-sidecar -p | grep -o 'http://[^ ]*' | head -1 | sed 's/?.*//') && \
|
||||
SIDECAR=$(tmux capture-pane -t pi-sidecar -p | grep -o 'http://[^ ]*' | head -1 | sed 's/?.*//; s|/$||') && \
|
||||
curl -s "$SIDECAR/pair-qr?token=$TOKEN"
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue