diff options
author | Felix Nilsson <felixn@axis.com> | 2024-05-20 10:29:28 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-05-22 10:21:26 +0100 |
commit | 4b62fa0f5294552f2d6e1267f9fe609952b3cb6c (patch) | |
tree | 3fb3ab9c8f7e10228f0be89488c6e464e231fa1d /meta/recipes-core | |
parent | 857f34eb498da1f691b99eb2a0c80be7319b69c4 (diff) | |
download | poky-4b62fa0f5294552f2d6e1267f9fe609952b3cb6c.tar.gz |
base-files: profile: fix error sh: 1: unknown operand
Handle errors when SHLVL isn't set.
(From OE-Core rev: 5df53fcfe3b70a5312fced3fcc1ba6290f2ee794)
Signed-off-by: Felix Nilsson <felixn@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r-- | meta/recipes-core/base-files/base-files/profile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-core/base-files/base-files/profile b/meta/recipes-core/base-files/base-files/profile index bded3757cc..5e8393c91c 100644 --- a/meta/recipes-core/base-files/base-files/profile +++ b/meta/recipes-core/base-files/base-files/profile | |||
@@ -58,7 +58,7 @@ resize() { | |||
58 | fi | 58 | fi |
59 | # only do this for /dev/tty[A-z] which are typically | 59 | # only do this for /dev/tty[A-z] which are typically |
60 | # serial ports | 60 | # serial ports |
61 | if [ $FIRSTTIMESETUP -eq 1 -a $SHLVL -eq 1 ] ; then | 61 | if [ $FIRSTTIMESETUP -eq 1 -a ${SHLVL:-1} -eq 1 ] ; then |
62 | case $(tty 2>/dev/null) in | 62 | case $(tty 2>/dev/null) in |
63 | /dev/tty[A-z]*) resize >/dev/null;; | 63 | /dev/tty[A-z]*) resize >/dev/null;; |
64 | esac | 64 | esac |