#!/bin/bash if [ $# -lt 1 ]; then echo "Usage: $0 " fi directory=$1 cd "$directory" for chksum in *.md5 *.sha3 *.sha512; do gpg --homedir "<%= @sign_keydir %>" --yes --sign "$chksum" done