commit 10ea3a7033c3299dca2b8cda7207d9b866ff091c
parent 5d3b01a6df20b75dca7185a9b17d0db58fa1c075
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Fri, 29 Sep 2017 10:02:12 +0200
Fix the solstice script
Do not resign the archive if a signature already exists. Fix the
detection of the markdown2 program.
Diffstat:
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/solstice.sh b/solstice.sh
@@ -38,7 +38,7 @@ dir_temp=$(mktemp -d) # Working directory
set +e
if hash markdown 2> /dev/null; then
markdown=markdown
-elif [ hash markdown2 2> /dev/null ]; then
+elif hash markdown2 2> /dev/null; then
markdown=markdown2
else
echo "Cannot find the markdown[2] command"
@@ -51,9 +51,10 @@ set -e
################################################################################
archs=$(find downloads/ -name "*.zip" -o -name "*.tar.gz" )
for arch in $archs; do
- rm $arch.sig
- echo "Sign $arch"
- gpg -a -o $arch.sig --detach-sign $arch
+ if [ ! -f $arch.sig ]; then
+ echo "Sign $arch"
+ gpg -a -o $arch.sig --detach-sign $arch
+ fi
done
################################################################################