rping.zsh: Various Updates

* Use $COLORS from common.zsh
* Fix colorful output when run from a different script

Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
This commit is contained in:
Anna Schumaker 2023-07-19 12:02:47 -04:00
parent e4434babcb
commit fef564a570
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,5 @@
#!/bin/zsh -e
source common.zsh
if [ "$#" -ne 3 ]; then
echo "Usage: $0 {rxe,siw} {client} {server}"
@ -10,8 +11,7 @@ CLIENT=$2
SERVER=$3
IFS=$'\n'
BIN=$HOME/bin
tags=($(python $BIN/colors/vm.py $CLIENT $SERVER))
tags=($(FORCE_COLOR=1 python $COLORS/vm.py $CLIENT $SERVER))
$BIN/rdma.zsh $RDMA $CLIENT $SERVER