pp-covidcert

Vaccination Certificate fpor the EU
git clone https://src.jayvii.de/pub/pp-covidcert.git
Log | Files | Refs

commit 863a07408a3bed9e4bfb4d31d2829be33787db7f
parent ec13a5da8b49a9f6029dea402a1c0296edea417a
Author: JayVii <jayvii@posteo.de>
Date:   Tue, 24 Aug 2021 19:37:49 +0200

Create cert-data file

Diffstat:
AMakefile | 3+++
Mpp-covidcert.sh | 13+++++++------
2 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/Makefile b/Makefile @@ -0,0 +1,3 @@ +install: + mkdir -p "~/.local/share/pp-covidcert" + cp "./icon.png" "~/.local/share/pp-covidcert/" diff --git a/pp-covidcert.sh b/pp-covidcert.sh @@ -31,7 +31,8 @@ function prompt_loadcertdata { --text="Scan and copy your vaccination QR Code information below." \ --form \ --field="Vaccination #$1" Text \ - --button="Create QR Code" + --button="Create QR Code" | cut -d "|" -f1 > "$2" + cat "$2" } function prompt_main { @@ -56,16 +57,16 @@ if [[ ! -f "$CERT01" ]] || [[ ! -f "$CERT02" ]]; then if [[ -f "$CERTDAT01" ]]; then cat "$CERTDAT01" | qrencode -o "$CERT01" else - prompt_nocertdata "01" "$CERT01" + prompt_nocertdata "01" "$CERDAT01" | qrencode -o "$CERT01" fi if [[ -f "$CERTDAT02" ]]; then cat "$CERTDAT02" | qrencode -o "$CERT02" else - prompt_nocertdata "02" "$CERT02" + prompt_nocertdata "02" "$CERDAT02" | qrencode -o "$CERT02" fi else - prompt_loadcertdata "01" | cut -d "|" -f1 | qrencode -o "$CERT01" - prompt_loadcertdata "02" | cut -d "|" -f1 | qrencode -o "$CERT02" + prompt_loadcertdata "01" "$CERDAT01" | qrencode -o "$CERT01" + prompt_loadcertdata "02" "$CERDAT02" | qrencode -o "$CERT02" fi fi @@ -73,7 +74,7 @@ fi CLOSE_APPLICATION=0 while [[ $CLOSE_APPLICATION != 0 ]]; do - + CHOOSE=$(prompt_main) if [[ $(printf "$CHOOSE" | cut -d "|" -f1) == "TRUE" ]]; then