fix: quote embedded paths in status-right widget
This commit is contained in:
parent
2ef4eb49ce
commit
e174226651
2 changed files with 6 additions and 4 deletions
|
|
@ -24,11 +24,11 @@ party_rec() { printf '%s/party-%s:%s.d/roster\n' "$PARTY_SOCKET_DIR" "$USER" "$1
|
|||
rec=$(party_rec srtest)
|
||||
sock=$(awk -F= '$1=="SOCKET"{print $2}' "$rec")
|
||||
sr=$(tmux -S "$sock" show-options -gv status-right)
|
||||
[[ "$sr" == *"party who --short"* ]]
|
||||
[[ "$sr" == *"who --short"* ]]
|
||||
# The #() body is executed with the tmux server's PATH, which need
|
||||
# not contain an installed `party` — the widget must pin the absolute
|
||||
# path of the script that hosted the party.
|
||||
[[ "$sr" == "party: #(/"* ]]
|
||||
[[ "$sr" == "party: #('/"* ]]
|
||||
}
|
||||
|
||||
@test "client-attached hook invokes a notify helper that broadcasts display-message" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue