Don't fail when the date argument is equal to now
datefudge.sh: don't fail when its date argument happens to be equal
to the current time (i.e. make `datefudge now some_command' work)
Robert Luberda
8 years ago
30 | 30 |
[ $? -eq 0 ] || exit 1
|
31 | 31 |
|
32 | 32 |
sec2=$(expr $(date '+%s') - $sec1)
|
33 | |
[ $? -eq 0 ] || exit 1
|
|
33 |
# According to its documentation expr returns exit status 1,
|
|
34 |
# when the expression evaluates to 0
|
|
35 |
[ $? -le 1 ] || exit 1
|
34 | 36 |
|
35 | 37 |
add_ld_preload()
|
36 | 38 |
{
|
|
0 |
datefudge (1.21~) UNRELEASED; urgency=medium
|
|
1 |
|
|
2 |
* datefudge.sh: don't fail when its date argument happens to be equal
|
|
3 |
to the current time (i.e. make `datefudge now some_command' work).
|
|
4 |
|
|
5 |
-- Robert Luberda <robert@debian.org> Sat, 13 Feb 2016 13:18:16 +0100
|
|
6 |
|
0 | 7 |
datefudge (1.20) unstable; urgency=medium
|
1 | 8 |
|
2 | 9 |
* datefudge.c: don't override time(2) on GNU/Hurd, as it seems to
|