Skip to content

Commit f29bdd0

Browse files
xtexxMingcongBai
authored andcommitted
bashrc: fix unbound variable warning of SSH_CONNECTION
1 parent 47eafc5 commit f29bdd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bashrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ _ssh_session() {
100100
# Store error code.
101101
err="$?"
102102
# This if branch would overwrite the current error code.
103-
if [[ x"$SSH_CONNECTION" != "x" ]]; then
103+
if [[ x"${SSH_CONNECTION:-}" != "x" ]]; then
104104
echo '(ssh)'
105105
fi
106106
# Load error code.

0 commit comments

Comments
 (0)