Ignore undeclared $SSH_CONNECTION
This commit is contained in:
parent
1281b71c8e
commit
bf401ee048
|
@ -76,7 +76,7 @@ if [[ -n $ALACRITTY_WINDOW_ID ]]; then
|
||||||
# The last 4 bits are always 0, so drop them
|
# The last 4 bits are always 0, so drop them
|
||||||
SEP=$(($ALACRITTY_WINDOW_ID >> 4))
|
SEP=$(($ALACRITTY_WINDOW_ID >> 4))
|
||||||
# SSH connections can use PID stored in SSH_CONNECTION
|
# SSH connections can use PID stored in SSH_CONNECTION
|
||||||
else
|
elif [[ -n $SSH_CONNECTION ]]; then
|
||||||
# Seems to always be even, so drop 1 bit
|
# Seems to always be even, so drop 1 bit
|
||||||
SEP=$(( $(echo $SSH_CONNECTION | cut -d ' ' -f 2) >> 1 ))
|
SEP=$(( $(echo $SSH_CONNECTION | cut -d ' ' -f 2) >> 1 ))
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue