From cb0696a400276e20ee17e436bb0aca09de17740b Mon Sep 17 00:00:00 2001 From: Lucas Date: Sat, 3 Oct 2020 16:06:20 +0000 Subject: [PATCH] sekrit: check if key exists with cp --- bin/sekrit.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }