summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVivekanand Veeracholan <vveerach@google.com>2022-02-02 21:53:33 +0300
committerVivekanand Veeracholan <vveerach@google.com>2022-02-02 22:02:13 +0300
commite79141249e9025a5066fc8d40ba51109fc242ab0 (patch)
treedd083e84feeb75c28b10f1c19b628ccdb52e8ede
parentb2876b7e2e7544c94961e094296df58ceadb990a (diff)
downloadopenbmc-e79141249e9025a5066fc8d40ba51109fc242ab0.tar.xz
meta-phosphor: obmc-console: Use "[" instead of "[[" on recipe
"[[" is not supported on all shell types. dash for example. So changing the "if" statement to use "[". Tested on both bash and dash environment. Signed-off-by: Vivekanand Veeracholan <vveerach@google.com> Change-Id: I61f267d2c4bba054b6d1e2f1bff0ad3c6e833266
-rw-r--r--meta-phosphor/recipes-phosphor/console/obmc-console_git.bb2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-phosphor/recipes-phosphor/console/obmc-console_git.bb b/meta-phosphor/recipes-phosphor/console/obmc-console_git.bb
index 6c8326ed37..40faead34e 100644
--- a/meta-phosphor/recipes-phosphor/console/obmc-console_git.bb
+++ b/meta-phosphor/recipes-phosphor/console/obmc-console_git.bb
@@ -51,7 +51,7 @@ do_install:append() {
# If the OBMC_CONSOLE_TTYS variable is used without the default OBMC_CONSOLE_HOST_TTY
# the port specific config file should be provided. If it is just OBMC_CONSOLE_HOST_TTY,
# use the old style which supports both port specific or obmc-console.conf method.
- if [[ "${OBMC_CONSOLE_TTYS}" != "${OBMC_CONSOLE_HOST_TTY}" ]]; then
+ if [ "${OBMC_CONSOLE_TTYS}" != "${OBMC_CONSOLE_HOST_TTY}" ]; then
rm -f ${D}${sysconfdir}/${BPN}/server.ttyVUART0.conf
for CONSOLE in ${OBMC_CONSOLE_TTYS}