From: NeilBrown Date: Sun, 25 May 2014 23:37:05 +0000 (+1000) Subject: mdcheck: don't pass the '+' to "date". X-Git-Tag: mdadm-3.3.1~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=868ab80deae400ec3c3896b135cf5d68784638d0;p=thirdparty%2Fmdadm.git mdcheck: don't pass the '+' to "date". It isn't needed, makes is harder to describe what --duration does. Signed-off-by: NeilBrown --- diff --git a/misc/mdcheck b/misc/mdcheck index 60d8501f..33570b97 100644 --- a/misc/mdcheck +++ b/misc/mdcheck @@ -25,7 +25,7 @@ # # Options are: # --continue Don't start new checks, only continue old ones. -# --duration This is passed to "date --date=+$duration" to find out +# --duration This is passed to "date --date=$duration" to find out # when to finish # # To support '--continue', arrays are identified by UUID and the 'sync_completed' @@ -57,7 +57,7 @@ do ;; --continue ) cont=yes ;; --duration ) shift; dur=$1 - endtime=$(date --date "+$dur" "+%s") + endtime=$(date --date "$dur" "+%s") ;; esac shift