From: Thomas Klausner Date: Sun, 3 Nov 2013 11:55:25 +0000 (+0100) Subject: Call date with -d since it's more portable than --date. X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=fd00631911806d45a33ab7c131ed95d373725016;p=packages%2Fb%2Fbup.git Call date with -d since it's more portable than --date. Signed-off-by: Thomas Klausner [rlb@defaultvalue.org: adjust commit message.] Reviewed-by: Rob Browning --- diff --git a/cmd/import-rdiff-backup-cmd.sh b/cmd/import-rdiff-backup-cmd.sh index b86404d..9a668c9 100755 --- a/cmd/import-rdiff-backup-cmd.sh +++ b/cmd/import-rdiff-backup-cmd.sh @@ -57,7 +57,7 @@ echo "$backups" | while read timestamp type; do tmpdir=$(must mktemp -d) || exit $? - echo "Importing backup from $(date --date=@$timestamp +%c) " \ + echo "Importing backup from $(date -d @$timestamp +%c) " \ "($counter / $backups_count)" 1>&2 echo 1>&2