X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/blobdiff_plain/90e24a2e0573ed67e5facf4f1bb2cc9909c26c15..c388de2b95b72a4e84fef6337b8a703d436f883f:/bin/start-ssh-agent diff --git a/bin/start-ssh-agent b/bin/start-ssh-agent index 542abcd..c72e129 100755 --- a/bin/start-ssh-agent +++ b/bin/start-ssh-agent @@ -11,13 +11,13 @@ esac force= chosen= commands= while [ $# -gt 0 ]; do case "$1" in - -h | --help) echo "$usage"; exit 0;; - -c | --cshell | --tcsh) style=csh chosen=t;; - -b | --bourne | --bash | --zsh) style=sh chosen=t;; - -f | --force) force=t;; - --) shift; break;; - -*) echo >&2 "$usage"; exit 1;; - *) break;; + -h | --help) echo "$usage"; exit 0 ;; + -c | --cshell | --tcsh) style=csh chosen=t ;; + -b | --bourne | --bash | --zsh) style=sh chosen=t ;; + -f | --force) force=t ;; + --) shift; break ;; + -*) echo >&2 "$usage"; exit 1 ;; + *) break ;; esac shift done @@ -62,13 +62,7 @@ fi ### Run a program, or export the details case $style in - sh) - echo "SSH_AUTH_SOCK='$SSH_AUTH_SOCK'; export SSH_AUTH_SOCK" - ;; - csh) - echo "setenv SSH_AUTH_SOCK '$SSH_AUTH_SOCK'" - ;; - commands) - exec "$@" - ;; + sh) echo "SSH_AUTH_SOCK='$SSH_AUTH_SOCK'; export SSH_AUTH_SOCK" ;; + csh) echo "setenv SSH_AUTH_SOCK '$SSH_AUTH_SOCK'" ;; + commands) exec "$@" ;; esac