Commit d57806c9 authored by Muhammad Herdiansyah's avatar Muhammad Herdiansyah

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

Fixes #760
parent 0fa5e771
...@@ -1686,7 +1686,7 @@ get_term() { ...@@ -1686,7 +1686,7 @@ get_term() {
# Check $PPID for terminal emulator. # Check $PPID for terminal emulator.
while [[ -z "$term" ]]; do while [[ -z "$term" ]]; do
if [[ "$SSH_CONNECTION" ]]; then if [[ "$SSH_CONNECTION" ]]; then
term="$SSH_TTY" term="$SSH_TTY"; break
else else
parent="$(get_ppid "$parent")" parent="$(get_ppid "$parent")"
[[ -z "$parent" ]] && break [[ -z "$parent" ]] && break
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment