mirror of
https://github.com/laurent22/rsync-time-backup
synced 2024-12-12 13:12:30 +00:00
Newer versions of bash reports OSTYPE differently. This copes with the case.
This commit is contained in:
parent
31a7bac4b4
commit
19ecacad25
1 changed files with 1 additions and 1 deletions
|
@ -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}`
|
||||
|
|
Loading…
Reference in a new issue