backout fc3171ae5e
timeout(1) isn't interruptible, and it fires while you're entering your key's passphrase, giving a subpar UX.
This commit is contained in:
parent
147695edc4
commit
35002770b8
@ -109,14 +109,8 @@ sekrit_cp()
|
||||
key=$1
|
||||
path=$(make_key_path "$key")
|
||||
[ -f "$path" ] || err "no data for key $key"
|
||||
|
||||
timo=
|
||||
if command -v timeout >/dev/null 2>&1; then
|
||||
timo="timeout 10"
|
||||
fi
|
||||
|
||||
_sekrit_decrypt "$path" |
|
||||
$timo xclip $rmlastnl -loops 1 -quiet -selection clip 2>/dev/null
|
||||
xclip $rmlastnl -loops 1 -quiet -selection clip 2>/dev/null
|
||||
}
|
||||
|
||||
sekrit_gen()
|
||||
|
Loading…
Reference in New Issue
Block a user