2021-10-01 10:22:10 +03:00
|
|
|
#!/bin/zsh
|
|
|
|
|
|
|
|
gpg-warmup() {
|
2022-07-19 02:41:45 +03:00
|
|
|
local t r
|
|
|
|
|
2021-10-01 10:22:10 +03:00
|
|
|
(( ${+commands[gpg]} )) || return 1
|
2022-07-19 02:41:45 +03:00
|
|
|
|
2021-10-01 10:22:10 +03:00
|
|
|
t=$(mktemp)
|
2021-12-07 02:46:50 +03:00
|
|
|
command gpg -abs "$t"
|
2021-10-01 10:22:10 +03:00
|
|
|
r=$?
|
|
|
|
command rm -f "$t" "$t.asc"
|
2022-07-19 02:41:45 +03:00
|
|
|
|
2021-10-01 10:22:10 +03:00
|
|
|
return "$r"
|
|
|
|
}
|