Changeset 677333d


Ignore:
Timestamp:
09/20/14 16:06:01 (4 months ago)
Author:
Bjarne Bertilsson <bjarne.bertilsson@…>
Branches:
master, releng/10.1, releng/10.1.1
Children:
6eb9453, 94c3282
Parents:
483aaa3
Message:

Fixed check that given date is valid

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/warden/scripts/backend/functions.sh

    rf3c4e0b r677333d  
    402402  snap_rm_date=`echo "$2" | sed 's/-//g'` 
    403403 
    404   if [ ! `date -j "$snap_rm_date"1200 "+%Y%m%d" 2>/dev/null` ]; then 
     404  if [ ! `date -j "$snap_rm_date"0000 "+%Y%m%d" 2>/dev/null` ]; then 
    405405    printerror "$2 is not a valid date." 
    406406  fi 
Note: See TracChangeset for help on using the changeset viewer.