From: Don Armstrong Date: Tue, 2 Jun 2015 14:55:12 +0000 (-0700) Subject: fix ssha to not have ~ quoted X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=aa86c8e43b6e7b30320f34784616ea88e10ac473;p=bin.git fix ssha to not have ~ quoted --- diff --git a/ssha b/ssha index 45e1b75..7b89193 100755 --- 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 "$@"