summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Cozic <laurent@cozic.net>2016-10-08 11:28:02 +0100
committerGitHub <noreply@github.com>2016-10-08 11:28:02 +0100
commit1880478bc5eaad53d889cbb8dd5ca2b7cddca06a (patch)
tree635a299c74fd5a6374a74ea04652b18db255a660
parent9bf68c1e1e23d23c7ef95e187ad6129ee587afe0 (diff)
parent4cf2f2e081c1d5bc34f1eeadeca0965a2c79f54d (diff)
Merge pull request #57 from dliessi/fix-date-FreeBSD
fix date parsing on FreeBSD
-rwxr-xr-xrsync_tmbackup.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/rsync_tmbackup.sh b/rsync_tmbackup.sh
index 0885dc8..f5569c9 100755
--- a/rsync_tmbackup.sh
+++ b/rsync_tmbackup.sh
@@ -47,6 +47,7 @@ fn_parse_date() {
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 ;;
darwin*) date -j -f "%Y-%m-%d-%H%M%S" "$1" "+%s" ;;
+ FreeBSD*) date -j -f "%Y-%m-%d-%H%M%S" "$1" "+%s" ;;
esac
}