Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

option '--host auto' has no effect #53

Closed
KES777 opened this issue Sep 14, 2015 · 1 comment
Closed

option '--host auto' has no effect #53

KES777 opened this issue Sep 14, 2015 · 1 comment

Comments

@KES777
Copy link
Collaborator

KES777 commented Sep 14, 2015

If you look into your code:

58:
host = localhost
....
88:
if [[ "$host" = "auto" && "$SSH_CONNECTION" != "" ]]; then
    echo "HERE"
    host=${SSH_CONNECTION%% *}
fi

You can notice that at line 88 $host is always localhost. It seems this code must be after command line option processing

@KES777
Copy link
Collaborator Author

KES777 commented Sep 14, 2015

wrong place. Right here

@KES777 KES777 closed this as completed Sep 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant