From 8e8c7502848e4061055a525c652af2ad7a8cf58b Mon Sep 17 00:00:00 2001 From: "Kim, Kwan" Date: Mon, 21 Feb 2022 10:23:12 -0800 Subject: [PATCH] shift the 1st arg HOST_PID prior to run klish (#43) --- CLI/klish/clish_start | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CLI/klish/clish_start b/CLI/klish/clish_start index 0d02f54dec..1952379793 100755 --- a/CLI/klish/clish_start +++ b/CLI/klish/clish_start @@ -1,5 +1,10 @@ #!/bin/bash +# Remove the first arg HOST_PID +if [[ "$1" == "HOST_PID"* ]]; then + shift +fi + export SONIC_MGMT_ROOT=/usr/sbin export SONIC_CLI_ROOT=$SONIC_MGMT_ROOT/cli if [ -z $SYSTEM_NAME ]