[oe-commits] [openembedded-core] 50/103: base-files: Add shell test quoting

git at git.openembedded.org git at git.openembedded.org
Wed Aug 31 09:02:09 UTC 2016


rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 3d56c859c5082b2314f229f5ae82f290d6e8c669
Author: Jussi Kukkonen <jussi.kukkonen at intel.com>
AuthorDate: Tue Aug 30 11:32:07 2016 +0300

    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 at intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/recipes-core/base-files/base-files/profile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-core/base-files/base-files/profile b/meta/recipes-core/base-files/base-files/profile
index ba1b9ba..a52bf89 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

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list