Newer versions of bash reports OSTYPE differently. This copes with the case.
This commit is contained in:
+1
-1
@@ -54,7 +54,7 @@ fn_parse_date() {
|
|||||||
case "$OSTYPE" in
|
case "$OSTYPE" in
|
||||||
linux*) date -d "${1:0:10} ${1:11:2}:${1:13:2}:${1:15:2}" +%s ;;
|
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 ;;
|
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`
|
mm=`expr ${1:5:2} - 1`
|
||||||
dd=`expr ${1:8:2}`
|
dd=`expr ${1:8:2}`
|
||||||
hh=`expr ${1:11:2}`
|
hh=`expr ${1:11:2}`
|
||||||
|
|||||||
Reference in New Issue
Block a user