Check for version of ecdsautils

Check if the older multiple-binary verion is used, or if we have a single binary.
This commit is contained in:
Christian 2015-11-25 00:23:41 +01:00
parent 7c12de7250
commit 537a838030

View File

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