sekrit: check if key exists with cp
This commit is contained in:
parent
ce2502c113
commit
cb0696a400
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user