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) }