sekrit: check if key exists with cp
This commit is contained in:
parent
ce2502c113
commit
cb0696a400
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue