Newer versions of bash reports OSTYPE differently. This copes with the case.

This commit is contained in:
Manuel Molina Cuberos 2017-12-09 11:28:22 +01:00
parent 31a7bac4b4
commit 19ecacad25

View file

@ -54,7 +54,7 @@ fn_parse_date() {
case "$OSTYPE" in
linux*) date -d "${1:0:10} ${1:11:2}:${1:13:2}:${1:15:2}" +%s ;;
cygwin*) date -d "${1:0:10} ${1:11:2}:${1:13:2}:${1:15:2}" +%s ;;
darwin8.0) yy=`expr ${1:0:4}`
darwin8*) yy=`expr ${1:0:4}`
mm=`expr ${1:5:2} - 1`
dd=`expr ${1:8:2}`
hh=`expr ${1:11:2}`