Term (SSH): Break from loop regardless of $SSH_TTY output

Fixes #760
This commit is contained in:
Muhammad Herdiansyah 2017-06-28 06:38:05 +07:00
parent 0fa5e77124
commit d57806c95f

View file

@ -1686,7 +1686,7 @@ get_term() {
# Check $PPID for terminal emulator.
while [[ -z "$term" ]]; do
if [[ "$SSH_CONNECTION" ]]; then
term="$SSH_TTY"
term="$SSH_TTY"; break
else
parent="$(get_ppid "$parent")"
[[ -z "$parent" ]] && break