From 81b9a0a1906d96cd5c4eec2b3df44f6e42a33aa8 Mon Sep 17 00:00:00 2001 From: DarkFeather Date: Thu, 15 Sep 2022 13:16:39 -0500 Subject: [PATCH] Logic update in tmux-hosts --- bin/tmux-hosts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/tmux-hosts b/bin/tmux-hosts index d6ec465..3c5c31f 100755 --- a/bin/tmux-hosts +++ b/bin/tmux-hosts @@ -85,7 +85,7 @@ if [ "$(basename $0)" == "tmux-hosts" ]; then tmuxHosts $(ansible -i "$inventory" --list-hosts "$group"\ | grep -v hosts\ \( \ | sed 's/\s\+//g' \ - | if [ $offset -gt 0 ]; then head -n -"${offset}"; else cat; fi \ + | if [ $offset -gt 0 ]; then tail -n +"${offset}"; else cat; fi \ | head -n 4 \ | tr '\n' ' ') fi