Logic update in tmux-hosts

This commit is contained in:
DarkFeather 2022-09-15 13:16:39 -05:00
parent b7d26b6aa7
commit 81b9a0a190
Signed by: DarkFeather
GPG Key ID: 1CC1E3F4ED06F296

View File

@ -85,7 +85,7 @@ if [ "$(basename $0)" == "tmux-hosts" ]; then
tmuxHosts $(ansible -i "$inventory" --list-hosts "$group"\ tmuxHosts $(ansible -i "$inventory" --list-hosts "$group"\
| grep -v hosts\ \( \ | grep -v hosts\ \( \
| sed 's/\s\+//g' \ | 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 \ | head -n 4 \
| tr '\n' ' ') | tr '\n' ' ')
fi fi