From 0f125256c401eaf1b2963923b5d1a5b66c8249e1 Mon Sep 17 00:00:00 2001 From: randeepsharma Date: Wed, 25 May 2022 10:48:02 -0400 Subject: [PATCH] add support for --once --- tools/monx.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/monx.sh b/tools/monx.sh index 5123c2a..e748132 100755 --- a/tools/monx.sh +++ b/tools/monx.sh @@ -11,6 +11,7 @@ # alias k=kubectl +once=$1 while true; do date @@ -64,5 +65,6 @@ END { } } ' | sort + if [ "$once" == "--once" ]; then exit 0; fi sleep 5 done