aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2019-03-26 21:03:03 -0300
committerSilvio Rhatto <rhatto@riseup.net>2019-03-26 21:03:03 -0300
commit89b6c7f7795b302884e4056103135bc4f963d81e (patch)
treee0f9089585af94572c387fa4619b6de38af60632
parent99310bbcf4cf4a6adf581c560fea444884f8af98 (diff)
downloadutils-ssh-89b6c7f7795b302884e4056103135bc4f963d81e.tar.gz
utils-ssh-89b6c7f7795b302884e4056103135bc4f963d81e.tar.bz2
UX fixes at ssh-agent-loadkey
-rwxr-xr-xssh-agent-loadkey5
1 files changed, 4 insertions, 1 deletions
diff --git a/ssh-agent-loadkey b/ssh-agent-loadkey
index d3a6d37..b6fefb1 100755
--- a/ssh-agent-loadkey
+++ b/ssh-agent-loadkey
@@ -95,7 +95,10 @@ function __load {
# UX
if [ "$?" == "0" ]; then
if which awesome-client &> /dev/null; then
- echo "naughty.notify({title = \"SSH:\", text =\"Loaded $HANDLE ($TYPE)\", timeout = 2})" | awesome-client
+ echo "naughty.notify({title = \"SSH:\", text =\"Loaded $HANDLE ($TYPE)\", timeout = 2})" | awesome-client &> /dev/null
+
+ # Cancel the last command exit status in casa awesome is not available
+ true
fi
fi
}