summaryrefslogtreecommitdiff
path: root/src/platform/darwin.sh
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2014-03-22 00:50:20 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2014-03-22 00:50:20 -0600
commit414bab7d973b50431854496811608c549fb541e1 (patch)
tree57739d521a60b689c165f26459ea839810756c3c /src/platform/darwin.sh
parentef16fc0fbede889f1123eace27c6eedf64295497 (diff)
downloadpass-414bab7d973b50431854496811608c549fb541e1.tar.gz
pass-414bab7d973b50431854496811608c549fb541e1.tar.bz2
pass-414bab7d973b50431854496811608c549fb541e1.zip
clip: suppress kill error
Diffstat (limited to 'src/platform/darwin.sh')
-rw-r--r--src/platform/darwin.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/platform/darwin.sh b/src/platform/darwin.sh
index f964cdd..6b8af4b 100644
--- a/src/platform/darwin.sh
+++ b/src/platform/darwin.sh
@@ -3,7 +3,7 @@
clip() {
sleep_argv0="password store sleep for user $(id -u)"
- pkill -f "^$sleep_argv0" && sleep 0.1
+ pkill -f "^$sleep_argv0" 2>/dev/null && sleep 0.1
before="$(pbpaste | openssl base64)"
echo -n "$1" | pbcopy
(
@@ -11,7 +11,7 @@ clip() {
now="$(pbpaste | openssl base64)"
[[ $now != $(echo -n "$1" | openssl base64) ]] && before="$now"
echo "$before" | openssl base64 -d | pbcopy
- ) & disown
+ ) 2>dev/null & disown
echo "Copied $2 to clipboard. Will clear in 45 seconds."
}
mmit/src/password-store.sh?h=1.6.5&id=eb1e05f143404312a54f0135a97225b0a17763f8&follow=1'>inplace: mutually exclusive with forceJason A. Donenfeld2-3/+3 2014-05-08usage: tab to spacesJason A. Donenfeld1-1/+1 2014-05-08generate: use nice ansi colors instead.Jason A. Donenfeld1-3/+2 2014-05-08zsh: posix compatible sed fix for zsh-completionJason A. Donenfeld1-1/+1 2014-05-07Implement interactive init functionSvend Sorensen1-0/+8 2014-05-07Implement interactive rename functionSvend Sorensen1-0/+7 2014-05-07Reorder interactive function to match order of helper functionsSvend Sorensen1-13/+13 2014-05-07Make edit helper function name consistent with other helpersSvend Sorensen1-1/+1 2014-05-07Factor out password completing-read functionSvend Sorensen1-4/+8 2014-05-07Add dash to Package-RequiresSvend Sorensen1-1/+1 2014-05-06Force sane sort order.Jason A. Donenfeld1-2/+2 2014-05-06generate: add --in-place optionJason A. Donenfeld4-9/+33