mirror of
https://git.yoctoproject.org/poky
synced 2026-04-19 06:32:13 +02:00
base-files: profile: fix error sh: 1: unknown operand
Handle errors when SHLVL isn't set. (From OE-Core rev: 7ef2c9ab669785e5e073d6f925f1a3f447fc31d9) Signed-off-by: Felix Nilsson <felixn@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 5df53fcfe3b70a5312fced3fcc1ba6290f2ee794) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
This commit is contained in:
committed by
Steve Sakoman
parent
5ff13f1b01
commit
b1a0ca3cab
@@ -58,7 +58,7 @@ resize() {
|
||||
fi
|
||||
# only do this for /dev/tty[A-z] which are typically
|
||||
# serial ports
|
||||
if [ $FIRSTTIMESETUP -eq 1 -a $SHLVL -eq 1 ] ; then
|
||||
if [ $FIRSTTIMESETUP -eq 1 -a ${SHLVL:-1} -eq 1 ] ; then
|
||||
case $(tty 2>/dev/null) in
|
||||
/dev/tty[A-z]*) resize >/dev/null;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user