diff options
author | Vivekanand Veeracholan <vveerach@google.com> | 2022-02-02 21:53:33 +0300 |
---|---|---|
committer | Vivekanand Veeracholan <vveerach@google.com> | 2022-02-02 22:02:13 +0300 |
commit | e79141249e9025a5066fc8d40ba51109fc242ab0 (patch) | |
tree | dd083e84feeb75c28b10f1c19b628ccdb52e8ede /meta-phosphor/recipes-phosphor/console/obmc-console_git.bb | |
parent | b2876b7e2e7544c94961e094296df58ceadb990a (diff) | |
download | openbmc-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
Diffstat (limited to 'meta-phosphor/recipes-phosphor/console/obmc-console_git.bb')
-rw-r--r-- | meta-phosphor/recipes-phosphor/console/obmc-console_git.bb | 2 |
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} |