From 060d2aad44a6afbb6abb82c5cba063a344253694 Mon Sep 17 00:00:00 2001 From: Blueve <672454911@qq.com> Date: Sat, 24 Oct 2020 02:38:31 +0000 Subject: [PATCH] Fix command issue and add emptt line before EOF --- files/image_config/bash/bash.bashrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/files/image_config/bash/bash.bashrc b/files/image_config/bash/bash.bashrc index 3d815caf21de..643bab238aaa 100644 --- a/files/image_config/bash/bash.bashrc +++ b/files/image_config/bash/bash.bashrc @@ -58,10 +58,10 @@ fi tty | grep ttyS >/dev/null && TMOUT=900 # if SSH_TARGET_CONSOLE_LINE was set, attach to console line interactive cli directly -if [ ! -z "$SSH_TARGET_CONSOLE_LINE" ]; then +if [ -n "$SSH_TARGET_CONSOLE_LINE" ]; then # enter the interactive cli - sudo connect $SSH_TARGET_CONSOLE_LINE + sudo connect line $SSH_TARGET_CONSOLE_LINE # exit after console session ended exit -fi \ No newline at end of file +fi