mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-28 16:58:03 +01:00
* modify git verify * force outputs to English --------- Co-authored-by: openoms <oms@tuta.io>
This commit is contained in:
parent
970b4dfb5d
commit
91cddd9fb0
1 changed files with 8 additions and 6 deletions
|
@ -30,6 +30,10 @@ PGPsigner="$1"
|
||||||
PGPpubkeyLink="$2"
|
PGPpubkeyLink="$2"
|
||||||
PGPpubkeyFingerprint="$3"
|
PGPpubkeyFingerprint="$3"
|
||||||
|
|
||||||
|
# force outputs to English
|
||||||
|
export LANG=en_US.UTF-8
|
||||||
|
export LC_ALL=en_US.UTF-8
|
||||||
|
|
||||||
wget -O /var/cache/raspiblitz/pgp_keys_${PGPsigner}.asc "${PGPpubkeyLink}"
|
wget -O /var/cache/raspiblitz/pgp_keys_${PGPsigner}.asc "${PGPpubkeyLink}"
|
||||||
|
|
||||||
# in the case the wget above fails, try to use curl instead
|
# in the case the wget above fails, try to use curl instead
|
||||||
|
@ -68,15 +72,13 @@ elif [ $# -eq 4 ]; then
|
||||||
commitOrTag="$4 tag"
|
commitOrTag="$4 tag"
|
||||||
fi
|
fi
|
||||||
echo "# running: ${gitCommand}"
|
echo "# running: ${gitCommand}"
|
||||||
if ${gitCommand} 2>&1 >&"$_temp"; then
|
${gitCommand} 2>&1 >&"$_temp"
|
||||||
goodSignature=1
|
|
||||||
else
|
|
||||||
goodSignature=0
|
|
||||||
fi
|
|
||||||
echo
|
echo
|
||||||
cat "$_temp"
|
cat "$_temp"
|
||||||
echo "# goodSignature(${goodSignature})"
|
echo
|
||||||
|
|
||||||
|
goodSignature=$(grep "Good signature from" -c <"$_temp")
|
||||||
|
echo "# goodSignature(${goodSignature})"
|
||||||
correctKey=$(tr -d " \t\n\r" <"$_temp" | grep "${PGPpubkeyFingerprint}" -c)
|
correctKey=$(tr -d " \t\n\r" <"$_temp" | grep "${PGPpubkeyFingerprint}" -c)
|
||||||
echo "# correctKey(${correctKey})"
|
echo "# correctKey(${correctKey})"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue