option '--host auto' has no effect
KES777 opened this issue · comments
Eugen Konkov commented
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