summaryrefslogtreecommitdiff
path: root/meta/recipes-core
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:43 +0100
commiteed586dd238efe859442b21b425f04e262bcdb2b (patch)
tree04893af84f0f0c261636698f1a99f912b58ef5cb /meta/recipes-core
parent68e06f1782253d1b9c8d8c4d818bc4915b93d257 (diff)
downloadopenembedded-core-eed586dd238efe859442b21b425f04e262bcdb2b.tar.gz
openembedded-core-eed586dd238efe859442b21b425f04e262bcdb2b.tar.bz2
openembedded-core-eed586dd238efe859442b21b425f04e262bcdb2b.zip
base-files: Add shell test quoting
tty can return "not a tt" which results in warnings when /etc/profile is executed. Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.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/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
if [ -x /usr/bin/resize ];then
# Make sure we are on a serial console (i.e. the device used starts with /dev/tty),
# otherwise we confuse e.g. the eclipse launcher which tries do use ssh
- test `tty | cut -c1-8` = "/dev/tty" && resize >/dev/null
+ test "`tty | cut -c1-8`" = "/dev/tty" && resize >/dev/null
fi
export PATH PS1 OPIEDIR QPEDIR QTDIR EDITOR TERM