diff --git a/docs/BUILD.md b/docs/BUILD.md index 0d02ee2..d2bce3a 100644 --- a/docs/BUILD.md +++ b/docs/BUILD.md @@ -81,7 +81,7 @@ curl -s "http:///pair-qr?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" ```