commit f90784e0a4d3060fe4ffb2d2ab851686c10a4b79
parent c4ee3a597234926cb99fa98236372f32fe2eec4e
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Tue, 3 Oct 2017 18:39:35 +0200
Minor adjustment of the Bash script
Diffstat:
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/solstice.sh b/solstice.sh
@@ -121,12 +121,19 @@ echo ""
tput bold; echo ">>> Solstice packages"; tput sgr0
archs=$(find downloads -regex "^.*/Solstice-[0-9]+\.[0-9]+\.[0-9]+-.*zip" \
-o -regex "^.*/Solstice-[0-9]+\.[0-9]+\.[0-9]+-.*tar.gz")
+sign_something=0
for arch in $archs; do
if [ ! -f $arch.sig ]; then
echo "Sign $arch"
gpg -a -o $arch.sig --detach-sign $arch
+ sign_something=1
fi
done
+
+if [ $sign_something == 0 ]; then
+ echo "Nothing to do"
+fi
+
echo ""
################################################################################