sekrit: check if key exists with cp

This commit is contained in:
Lucas 2020-10-03 16:06:20 +00:00
parent ce2502c113
commit cb0696a400

View File

@ -111,7 +111,7 @@ sekrit_cp()
[ $# -eq 1 ] || usage [ $# -eq 1 ] || usage
key=$1 key=$1
sekrit_get "$key" | sekrit_has "$key" && sekrit_get "$key" |
xclip $rmlastnl -loops 1 -quiet -selection clip 2>/dev/null xclip $rmlastnl -loops 1 -quiet -selection clip 2>/dev/null
} }