Commit ef3ecfec authored by Vincent Pelletier's avatar Vincent Pelletier

shell/caucase.sh: Assign value to intended variable.

Found by shellcheck.
parent 3540d427
...@@ -121,7 +121,7 @@ unwrap () { ...@@ -121,7 +121,7 @@ unwrap () {
printf "%s\\n" "$wrapped" | jq --raw-output .signature | \ printf "%s\\n" "$wrapped" | jq --raw-output .signature | \
base64 -d > "$signature_file" base64 -d > "$signature_file"
payload="$(printf "%s\\n" "$wrapped" | jq --raw-output .payload)" payload="$(printf "%s\\n" "$wrapped" | jq --raw-output .payload)"
PUBKEY_FILE="$(mktemp --suffix=unwrap.pub)" pubkey_file="$(mktemp --suffix=unwrap.pub)"
if printf "%s\\n" "$payload" "$@" | openssl x509 -pubkey -noout > "$pubkey_file"; then if printf "%s\\n" "$payload" "$@" | openssl x509 -pubkey -noout > "$pubkey_file"; then
printf "%s%s " "$payload" "$digest" \ printf "%s%s " "$payload" "$digest" \
| openssl dgst \ | openssl dgst \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment