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:
Christian 2015-11-25 00:18:39 +01:00 committed by alariel
parent a0acdbb0de
commit cc6160f274

View File

@ -35,7 +35,13 @@ awk 'BEGIN { sep=0 }
else print > "'"$lower"'"}' \
"$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"