Mercurial > hg > config
comparison bin/setup-X.sh @ 574:00f5e55cbce8
elif+then
| author | Jeff Hammel <k0scist@gmail.com> |
|---|---|
| date | Fri, 17 Jan 2014 14:58:26 -0800 |
| parents | 1e1db18fb7fa |
| children | 637c9fac3f8d |
comparison
equal
deleted
inserted
replaced
| 573:1e1db18fb7fa | 574:00f5e55cbce8 |
|---|---|
| 27 GUI_SSH_ASKPASS=/usr/bin/ksshaskpass | 27 GUI_SSH_ASKPASS=/usr/bin/ksshaskpass |
| 28 if [[ -e "${GUI_SSH_ASKPASS}" ]] | 28 if [[ -e "${GUI_SSH_ASKPASS}" ]] |
| 29 then | 29 then |
| 30 SSH_ASKPASS=${GUI_SSH_ASKPASS} ssh-add | 30 SSH_ASKPASS=${GUI_SSH_ASKPASS} ssh-add |
| 31 elif [[ -z "$PS1" ]] | 31 elif [[ -z "$PS1" ]] |
| 32 then | |
| 32 # http://www.cyberciti.biz/faq/linux-unix-bash-check-interactive-shell/ | 33 # http://www.cyberciti.biz/faq/linux-unix-bash-check-interactive-shell/ |
| 33 | 34 |
| 34 echo "not running ssh-add: PS1 not found" | 35 echo "not running ssh-add: PS1 not found" |
| 35 else | 36 else |
| 36 ssh-add # interactive terminal | 37 ssh-add # interactive terminal |
