From 1bd2255ced65d5a7a0a2437d896f32752c98b987 Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Sun, 21 Jun 2009 12:44:06 -0500 Subject: [PATCH] support testing just one notification Signed-off-by: Dustin Kirkland --- testing/time_notifications | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/testing/time_notifications b/testing/time_notifications index aeded4a0..89b14bc9 100755 --- a/testing/time_notifications +++ b/testing/time_notifications @@ -9,7 +9,12 @@ loop() { } TIMEFORMAT="%R" -for i in $(ls bin); do +if [ -n "$1" ]; then + list="$1" +else + list=$(ls bin) +fi +for i in $list; do freq=`grep "byobu-status $i" ./profiles/common | awk '{print $3}'` echo -n "$i $freq " time loop $i