Fix problem where builds starting before and ending after midnight would
fail because of a date comparison. Signed-off-by: Al Stone <ahs3@redhat.com>
This commit is contained in:
parent
a03e600feb
commit
a8d003887e
@ -26,7 +26,13 @@ case $m in
|
||||
*) BITS=32
|
||||
;;
|
||||
esac
|
||||
WHEN=`date +"%b %_d %Y"`
|
||||
|
||||
# if a build starts before midnight, but ends after midnight, this
|
||||
# test can get confused. grab the date from the iasl file we just
|
||||
# built so they match regardless.
|
||||
FDATE=`stat --format="%Y" $BINDIR/iasl | cut -d" " -f1`
|
||||
WHEN=`date --date="@$FDATE" +"%b %_d %Y"`
|
||||
|
||||
sed -e "s/XXXXXXXXXXX/$WHEN/" \
|
||||
-e "s/YYYY/$BITS/" \
|
||||
-e "s/VVVVVVVV/$VERSION/" \
|
||||
|
||||
Loading…
Reference in New Issue
Block a user