From 453cc058d9ee6d7cb47529d99061216e72149a5f Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 9 May 2021 06:21:55 +0200 Subject: Adding bin. Signed-off-by: Daniel Baumann --- bin/gpg-sign | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 bin/gpg-sign (limited to 'bin/gpg-sign') diff --git a/bin/gpg-sign b/bin/gpg-sign new file mode 100755 index 0000000..561e654 --- /dev/null +++ b/bin/gpg-sign @@ -0,0 +1,14 @@ +#!/bin/sh + +set -e + +for FILE in $(find . -maxdepth 1 -mindepth 1 -type f -and -not -name "*.sha512" -and -not -name "*.sig") +do + if [ -e "${FILE}" ] && [ ! -e "${FILE}.sig" ] + then + echo "${FILE}" + gpg --armor -b "${FILE}" + mv "${FILE}".asc "${FILE}.sig" + touch -r "${FILE}" "${FILE}.sig" + fi +done -- cgit v1.2.3