Ignore undeclared $SSH_CONNECTION

This commit is contained in:
John Mertz 2024-10-02 17:41:58 -06:00
parent 1281b71c8e
commit bf401ee048
1 changed files with 1 additions and 1 deletions

View File

@ -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