From: Mark Wooding Date: Sat, 5 Nov 2016 21:28:22 +0000 (+0000) Subject: bin/start-ssh-agent: Style tweaking of `case' statements. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/commitdiff_plain/c388de2b95b72a4e84fef6337b8a703d436f883f?ds=sidebyside bin/start-ssh-agent: Style tweaking of `case' statements. --- 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