ca-scripts
ca-scripts copied to clipboard
Fixed calculation error caused by invalid octal number
"%j" format of GNU date command will be replaced a zero-padded 3 digit number. When day-of-year < 100
, leading character of NOWDAYS
or ENDDAYS
is '0' and bash interprets two variables as octal.
$ TZ= date +%j -d 2019-03-30
089
$ echo $(( 089 ))
bash: 089: value too great for base (error token is "089")
Just got bit by this: Apparently everyone renews their certificates mid-to-late in the year?
@fluffle Please merge it.