2021-10-01 10:22:10 +03:00
|
|
|
#!/bin/zsh
|
|
|
|
|
|
|
|
gpg-warmup() {
|
2024-03-04 15:35:55 +03:00
|
|
|
(( ${+commands[gpg]} )) || return 127
|
2022-07-19 02:41:45 +03:00
|
|
|
|
2024-01-27 00:10:58 +03:00
|
|
|
local t r
|
|
|
|
|
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=$?
|
2024-01-27 00:10:58 +03:00
|
|
|
rm -f "$t" "$t.asc"
|
2022-07-19 02:41:45 +03:00
|
|
|
|
2021-10-01 10:22:10 +03:00
|
|
|
return "$r"
|
|
|
|
}
|