summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJussi Kukkonen <jussi.kukkonen@intel.com>2016-08-30 11:32:07 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-09-03 23:45:52 +0100
commit1100af93cb07caf24d568c039d52fb0c80714c30 (patch)
treed6bcef3c4268cf47e0569717232697163dce4bc5
parentc95af9cef9296b3edd9e3e61ee529e157e6df610 (diff)
downloadpoky-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/profile2
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
31if [ -x /usr/bin/resize ];then 31if [ -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
35fi 35fi
36 36
37export PATH PS1 OPIEDIR QPEDIR QTDIR EDITOR TERM 37export PATH PS1 OPIEDIR QPEDIR QTDIR EDITOR TERM