diff --git a/functions b/functions index 4f40a85..809fc40 100644 --- a/functions +++ b/functions @@ -21,7 +21,7 @@ sign_file () { local _file="$1" test ! -f "$_file" && return 1 - test -f "$_file.sig" || ssh-keygen -Y sign -f ~/.ssh/id_ed25519 -n file "$_file" 2>&1 >/dev/null + test -f "$_file.sig" || ssh-keygen -Y sign -f "$private_key" -n file "$_file" 2>&1 >/dev/null cat "${_file}.sig" | grep -v SIGNATURE | tr -d "\n" }