Changed sign.sh to check for version of ecdsautils
Newer version of ecdsautils is just a single binary, so there should be a check for it. If not, see if the "old" ecdsasign is there.
This commit is contained in:
parent
a0acdbb0de
commit
cc6160f274
@ -35,7 +35,13 @@ awk 'BEGIN { sep=0 }
|
|||||||
else print > "'"$lower"'"}' \
|
else print > "'"$lower"'"}' \
|
||||||
"$manifest"
|
"$manifest"
|
||||||
|
|
||||||
ecdsautil sign "$upper" < "$SECRET" >> "$lower"
|
if [ -e '/usr/local/bin/ecdsautil' ]; then
|
||||||
|
ECMD='/usr/local/bin/ecdsautil sign'
|
||||||
|
elif [ -e '/usr/local/bin/ecdsasign' ]; then
|
||||||
|
ECMD='/usr/local/bin/ecdsasign'
|
||||||
|
fi
|
||||||
|
|
||||||
|
$ECMD "$upper" < "$SECRET" >> "$lower"
|
||||||
|
|
||||||
(
|
(
|
||||||
cat "$upper"
|
cat "$upper"
|
||||||
|
Loading…
Reference in New Issue
Block a user