From 51dadf5bfcdb439b512495839b221ec450052d80 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Tue, 18 Oct 2016 20:51:14 -0700 Subject: [PATCH] [Synergy] Fix start_client_at --- dotfiles/lib/shellenv/synergy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotfiles/lib/shellenv/synergy.sh b/dotfiles/lib/shellenv/synergy.sh index 44667a8d..4807b694 100644 --- a/dotfiles/lib/shellenv/synergy.sh +++ b/dotfiles/lib/shellenv/synergy.sh @@ -1,7 +1,7 @@ SYNERGY_CONF="$HOME/.synergy.conf" synergy_start_client_at() { - ssh "$1" 'test -z $(pgrep synergyc) || synergyc '"$(localip)"'; ps aux | grep synergyc' + ssh "$1" '[[ -z "$(pgrep synergyc)" ]] && synergyc '"$(localip)" } synergy_start_server_here() {