Просмотр исходного кода

parse expiry date with coreutils' date command to allow specification of duration / interval

Fabian Peter Hammerle 8 лет назад
Родитель
Сommit
900701d8c6
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      Makefile
  2. 1 1
      expiry-datetime

+ 1 - 1
Makefile

@@ -4,7 +4,7 @@ gpgsm-params : gpgsm-params-template subject-keygrip.hex issuer-keygrip.hex expi
 	./prepare-gpgsm-params --template gpgsm-params-template \
 		--subject-keygrip "$(shell cat subject-keygrip.hex)" \
 		--issuer-keygrip "$(shell cat issuer-keygrip.hex)" \
-		--expiry-datetime "$(shell cat expiry-datetime)" \
+		--expiry-datetime "$(shell date --date="$(shell cat expiry-datetime)")" \
 		> $@
 
 cert.der : gpgsm-params

+ 1 - 1
expiry-datetime

@@ -1 +1 @@
-2017-07-02T12:03:28+02:00
++1 month