]> gitweb.fluxo.info Git - utils-ssh.git/commitdiff
UX fixes at ssh-agent-loadkey
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 27 Mar 2019 00:03:03 +0000 (21:03 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 27 Mar 2019 00:03:03 +0000 (21:03 -0300)
ssh-agent-loadkey

index d3a6d37c205e2a7215c3d8c45aadc98b2486acfa..b6fefb1f7df02cb2339015b3925a0efa2648490b 100755 (executable)
@@ -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
 }