firmas #7
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ sign_file () {
|
||||||
local _file="$1"
|
local _file="$1"
|
||||||
|
|
||||||
test ! -f "$_file" && return 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"
|
cat "${_file}.sig" | grep -v SIGNATURE | tr -d "\n"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue