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:
committed by
Federico Hernandez
parent
fdb359c180
commit
469cafa053
@@ -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"`
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user