summaryrefslogtreecommitdiff
path: root/rsync_tmbackup.sh
diff options
context:
space:
mode:
authorManuel Molina Cuberos <mmc@pocosmhz.org>2017-12-09 11:28:22 +0100
committerManuel Molina Cuberos <mmc@pocosmhz.org>2017-12-09 11:28:22 +0100
commit19ecacad250d1f383f4728ebc42f70faadf7af94 (patch)
tree96a909b08ff4a38965ec7f901fd3c62a65523719 /rsync_tmbackup.sh
parent31a7bac4b4520deb747c429df0ab3e73f19c1816 (diff)
Newer versions of bash reports OSTYPE differently. This copes with the case.
Diffstat (limited to 'rsync_tmbackup.sh')
-rwxr-xr-xrsync_tmbackup.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/rsync_tmbackup.sh b/rsync_tmbackup.sh
index 1bdd7cb..3d705cc 100755
--- a/rsync_tmbackup.sh
+++ b/rsync_tmbackup.sh
@@ -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}`