commit 553d096111061b749bd17e5fe386c5ff6c888e1e
parent 60e1fa752f218616e04648a21578fe346fe36a6d
Author: Jason A. Donenfeld <Jason@zx2c4.com>
Date: Thu, 20 Mar 2014 00:18:50 -0600
Style.
Diffstat:
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/password-store.sh b/src/password-store.sh
@@ -118,9 +118,7 @@ clip() {
(
sleep 45
now="$(xclip -o -selection clipboard | base64)"
- if [[ $now != $(echo -n "$1" | base64) ]]; then
- before="$now"
- fi
+ [[ $now != $(echo -n "$1" | base64) ]] && before="$now"
# It might be nice to programatically check to see if klipper exists,
# as well as checking for other common clipboard managers. But for now,