summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/password-store.sh4
1 files changed, 1 insertions, 3 deletions
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,