diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2022-11-11 12:32:37 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2022-11-11 12:32:37 +0800 |
commit | 4d796083c27c28a7cef461adf01022d495f73405 (patch) | |
tree | d62250fb61145a3702819adc5d87e668c80a38cb /X11 | |
parent | 207b48b29fd8671b281a1c7de19eadf9c9e03bd2 (diff) |
Update
Diffstat (limited to 'X11')
-rwxr-xr-x | X11/rofi/pass.get | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/X11/rofi/pass.get b/X11/rofi/pass.get index 44857db..df980b7 100755 --- a/X11/rofi/pass.get +++ b/X11/rofi/pass.get | |||
@@ -36,7 +36,7 @@ fi | |||
36 | RESULT="$(pass $1)" | 36 | RESULT="$(pass $1)" |
37 | if [ -n "$RESULT" ]; then | 37 | if [ -n "$RESULT" ]; then |
38 | # Copy the given password into clipboard | 38 | # Copy the given password into clipboard |
39 | echo "$RESULT" | head -1 | xsel -ib | 39 | echo "$RESULT" | head -1 | tr -d '\n' | xsel -ib |
40 | 40 | ||
41 | # And show extra message | 41 | # And show extra message |
42 | EXTRA="$(echo; echo; echo "$RESULT" | sed '1d' | sed '1{/^$/d}')" | 42 | EXTRA="$(echo; echo; echo "$RESULT" | sed '1d' | sed '1{/^$/d}')" |