Development discussion of WireGuard
 help / color / mirror / Atom feed
* reresolve-dns: use $EPOCHSECONDS instead of $(date +%s)
@ 2022-02-12  2:20 Alexis gg
  0 siblings, 0 replies; only message in thread
From: Alexis gg @ 2022-02-12  2:20 UTC (permalink / raw)
  To: wireguard

This commit breaks everything on older OSes (esp. Centos 7):
https://git.zx2c4.com/wireguard-tools/commit/?id=1fd95708391088742c139010cc6b821add941dec

There is no check on the bash's version, the built-in variable
$EPOCHSECONDS is available only from bash 5.
https://lists.gnu.org/archive/html/info-gnu/2019-01/msg00010.html

This isn't an improvement, $(date +%s) is stable from much older
versions and will stay stable in future bash versions.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-02-14 13:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-12  2:20 reresolve-dns: use $EPOCHSECONDS instead of $(date +%s) Alexis gg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).