Make run_all more portable.

- Changed shebang for portability
- Fix date command for FreeBSD

Signed-off-by: Federico Hernandez <ultrafredde@gmail.com>
This commit is contained in:
Pietro Cerutti 2009-10-21 22:20:32 +02:00 committed by Federico Hernandez
parent fdb359c180
commit 469cafa053

View file

@ -1,4 +1,4 @@
#! /bin/bash
#! /bin/sh
date > all.log
@ -14,7 +14,7 @@ END=`tail -1 all.log`
OS=`uname`
case $OS in
Darwin)
Darwin | FreeBSD)
STARTEPOCH=`date -j -f "%a %b %d %T %Z %Y" "${START}" "+%s"`
ENDEPOCH=`date -j -f "%a %b %d %T %Z %Y" "${END}" "+%s"`
;;