diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-20 18:40:24 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-20 18:40:24 +1200 |
commit | 851c01a08778dae009cec1cee3f3ce7633bd3573 (patch) | |
tree | 13b21f8919c865c71d11ea5986bd967897ecc58a /bin/sshi | |
parent | Update path() completion (diff) | |
download | dotfiles-851c01a08778dae009cec1cee3f3ce7633bd3573.tar.gz dotfiles-851c01a08778dae009cec1cee3f3ce7633bd3573.zip |
Exit sshi(1) with 1 not 2 if null SSH_CONNECTION
Since that's not a usage error
Diffstat (limited to 'bin/sshi')
-rwxr-xr-x | bin/sshi | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4,7 +4,7 @@ # Check we have an SSH_CONNECTION variable if [ -z "$SSH_CONNECTION" ] ; then printf >&2 'sshi: SSH_CONNECTION appears empty\n' - exit 2 + exit 1 fi # Print the two variables into a subshell so we can chop them up with read |