henrikpersson / rsub

Use rmate with Sublime Text.
458 stars 70 forks source link

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

Closed KES777 closed 9 years ago

KES777 commented 9 years ago

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 commented 9 years ago

wrong place. Right here