From cc6160f2747f3d3891509cf4735f2dc65b9c44c9 Mon Sep 17 00:00:00 2001 From: Christian Date: Wed, 25 Nov 2015 00:18:39 +0100 Subject: [PATCH] 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. --- contrib/sign.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/contrib/sign.sh b/contrib/sign.sh index 36053358..e8769ed9 100755 --- a/contrib/sign.sh +++ b/contrib/sign.sh @@ -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"