pp-covidcert

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

commit 5d0b13efbeeddaab0626477526864010adea01d3
parent 02dfd10aefe53e68fa259677c1c666a7f31d2e61
Author: JayVii <jayvii@posteo.de>
Date:   Wed, 25 Aug 2021 10:38:28 +0200

Layout fixes and makefile fixes

Diffstat:
AMakefile | 5+++++
Micon.png | 0
Mpp-covidcert.sh | 11++++++-----
3 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/Makefile b/Makefile @@ -0,0 +1,5 @@ +install: + mkdir -p ${HOME}/.local/share/pp-covidcert + mkdir -p ${HOME}/.local/bin + install -m 644 ./icon ${HOME}/.local/share/pp-covidcert/ + install -m 755 ./icon ${HOME}/.local/bin/ diff --git a/icon.png b/icon.png Binary files differ. diff --git a/pp-covidcert.sh b/pp-covidcert.sh @@ -37,7 +37,8 @@ function prompt_loadcertdata { --text="Scan and copy your vaccination QR Code information below." \ --form \ --field="Vaccination #$1:TXT" Text \ - --button="Create QR Code" + --button="Create QR Code" | cut -d "|" -f1 > "$2" + cat "$2" } function prompt_main { @@ -67,16 +68,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