diff --git a/bin/sekrit.sh b/bin/sekrit.sh index 30c6996..edb1cb4 100644 --- a/bin/sekrit.sh +++ b/bin/sekrit.sh @@ -111,7 +111,7 @@ sekrit_cp() [ $# -eq 1 ] || usage key=$1 - sekrit_get "$key" | + sekrit_has "$key" && sekrit_get "$key" | xclip $rmlastnl -loops 1 -quiet -selection clip 2>/dev/null }