[tor-commits] [flashproxy/master] Show the console log iff flashproxy-exercise fails.
dcf at torproject.org
dcf at torproject.org
Thu Aug 30 22:56:00 UTC 2012
commit c6b0433653472a155af86ea5ac6c71bff6cce4fc
Author: David Fifield <david at bamsoftware.com>
Date: Thu Aug 30 14:48:10 2012 -0700
Show the console log iff flashproxy-exercise fails.
This is to send cron mail when the script fails, but not otherwise.
---
experiments/exercise/flashproxy-exercise.sh | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/experiments/exercise/flashproxy-exercise.sh b/experiments/exercise/flashproxy-exercise.sh
index 4db7530..488bd5b 100755
--- a/experiments/exercise/flashproxy-exercise.sh
+++ b/experiments/exercise/flashproxy-exercise.sh
@@ -6,7 +6,4 @@
DATE=$(date +"%Y-%m-%d-%H:%M")
LOG="log-$DATE"
-# To get cron mail:
-# ./exercise.sh 2>&1 | tee "$LOG"
-# To not get cron mail:
-./exercise.sh &> "$LOG"
+(./exercise.sh &> "$LOG") || cat "$LOG"
More information about the tor-commits
mailing list