]> git.donarmstrong.com Git - bin.git/blobdiff - ssha
add mutt alias which executes neomutt if that exists
[bin.git] / ssha
diff --git a/ssha b/ssha
index 45e1b750edac09edd12cb7c9c8ee90cc0856e320..7b89193d3837bd1f0b0d8a26b422f278eb751b43 100755 (executable)
--- a/ssha
+++ b/ssha
@@ -1,9 +1,9 @@
 #!/bin/sh
 
-HOSTNAME=$(hostname)
+HOSTNAME="$(hostname)"
 
-if [ -e "~/.ssh/ssh_agent_info_${HOSTNAME}" ]; then
-    . "~/.ssh/ssh_agent_info_${HOSTNAME}"
+if [ -e ~/.ssh/ssh_agent_info_"${HOSTNAME}" ]; then
+    . ~/.ssh/ssh_agent_info_"${HOSTNAME}";
 fi;
 
 ssh "$@"