diff options
author | Jussi Kukkonen <jussi.kukkonen@intel.com> | 2016-08-30 11:32:07 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-09-03 23:45:52 +0100 |
commit | 1100af93cb07caf24d568c039d52fb0c80714c30 (patch) | |
tree | d6bcef3c4268cf47e0569717232697163dce4bc5 | |
parent | c95af9cef9296b3edd9e3e61ee529e157e6df610 (diff) | |
download | poky-1100af93cb07caf24d568c039d52fb0c80714c30.tar.gz |
base-files: Add shell test quoting
tty can return "not a tt" which results in warnings when /etc/profile
is executed.
(From OE-Core rev: eed586dd238efe859442b21b425f04e262bcdb2b)
Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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 ba1b9ba156..a52bf89cfd 100644 --- a/meta/recipes-core/base-files/base-files/profile +++ b/meta/recipes-core/base-files/base-files/profile | |||
@@ -31,7 +31,7 @@ fi | |||
31 | if [ -x /usr/bin/resize ];then | 31 | if [ -x /usr/bin/resize ];then |
32 | # Make sure we are on a serial console (i.e. the device used starts with /dev/tty), | 32 | # Make sure we are on a serial console (i.e. the device used starts with /dev/tty), |
33 | # otherwise we confuse e.g. the eclipse launcher which tries do use ssh | 33 | # otherwise we confuse e.g. the eclipse launcher which tries do use ssh |
34 | test `tty | cut -c1-8` = "/dev/tty" && resize >/dev/null | 34 | test "`tty | cut -c1-8`" = "/dev/tty" && resize >/dev/null |
35 | fi | 35 | fi |
36 | 36 | ||
37 | export PATH PS1 OPIEDIR QPEDIR QTDIR EDITOR TERM | 37 | export PATH PS1 OPIEDIR QPEDIR QTDIR EDITOR TERM |