From 553d096111061b749bd17e5fe386c5ff6c888e1e Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 20 Mar 2014 00:18:50 -0600 Subject: Style. --- src/password-store.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/password-store.sh') diff --git a/src/password-store.sh b/src/password-store.sh index 9cfae7f..6fa32c1 100755 --- 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, -- cgit v1.2.3-59-g8ed1b