Logic update in tmux-hosts
This commit is contained in:
parent
b7d26b6aa7
commit
81b9a0a190
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user