From 6169de4e1de387df5ca4d371f8f2fff632d33538 Mon Sep 17 00:00:00 2001 From: Vladislav Nepogodin Date: Tue, 28 Feb 2023 20:50:42 +0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20sign=20ISOs=20with=20gpg=20key?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- util-iso.sh | 8 ++++++++ util.sh | 2 -- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/util-iso.sh b/util-iso.sh index b9096f5..e6e67b0 100755 --- a/util-iso.sh +++ b/util-iso.sh @@ -160,6 +160,14 @@ run_build() { else info "checksums for [$f] already created" fi + if [[ ! -e $f.sig ]]; then + sign_with_key $f + elif [[ $f -nt $f.sig ]]; then + rm $f.sig + sign_with_key $f + else + info "signature file for [$f] already created" + fi done show_elapsed_time "${FUNCNAME}" "${timer_start}" } diff --git a/util.sh b/util.sh index a529619..046ff81 100755 --- a/util.sh +++ b/util.sh @@ -8,8 +8,6 @@ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. -[[ -r ${src_dir}/util-msg.sh ]] && source ${src_dir}/util-msg.sh - get_timer(){ echo $(date +%s) }