diff --git a/bins/icb-irc-tunnel.nix b/bins/icb-irc-tunnel.nix index 9056403..22dac43 100644 --- a/bins/icb-irc-tunnel.nix +++ b/bins/icb-irc-tunnel.nix @@ -8,9 +8,9 @@ ${icbirc}/bin/icbirc -l 127.0.0.1 -s localhost -p 6645 tname="IRC" - if !tmux ls | grep -q "^${tname}:"; then - tmux -2 new-session -d -s "${tname}" 'weechat' - tmux -s "${tname}" splitw -dv -b -h -l 30% 'ssh anonicb@slackers.openbsd.org' + if !tmux ls | grep -q "^''${tname}:"; then + tmux -2 new-session -d -s "''${tname}" 'weechat' + tmux -s "''${tname}" splitw -dv -b -h -l 30% 'ssh anonicb@slackers.openbsd.org' fi ${pkgs.openssh}/bin/ssh -NTL 7326:localhost:7326 \