From: Jussi Kukkonen Date: Tue, 30 Aug 2016 08:32:07 +0000 (+0300) Subject: base-files: Add shell test quoting X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~24438 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eed586dd238efe859442b21b425f04e262bcdb2b;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-core/base-files/base-files/profile b/meta/recipes-core/base-files/base-files/profile index ba1b9ba1564..a52bf89cfdc 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