diff options
author | Martin Jansa <martin.jansa@gmail.com> | 2015-04-08 14:40:44 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-04-09 19:48:00 +0100 |
commit | 87429d37e72b1fd2f329d693b4d1b1229a90e0a2 (patch) | |
tree | 7f740e6e8e97fabeff490d983858e427be0c8a85 /meta/recipes-extended | |
parent | 1b24eaa71702c07e525d8a62c08c0983e9917468 (diff) | |
download | openembedded-core-87429d37e72b1fd2f329d693b4d1b1229a90e0a2.tar.gz openembedded-core-87429d37e72b1fd2f329d693b4d1b1229a90e0a2.tar.bz2 openembedded-core-87429d37e72b1fd2f329d693b4d1b1229a90e0a2.zip |
tzdata: fix postinst
* add quotes around possibly empty tz variable
* use exit instead of return, because we're not in function and postinst
fails:
line 9: return: can only `return' from a function or sourced script"
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r-- | meta/recipes-extended/tzdata/tzdata.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-extended/tzdata/tzdata.inc b/meta/recipes-extended/tzdata/tzdata.inc index 37ae92647c..ee56d36395 100644 --- a/meta/recipes-extended/tzdata/tzdata.inc +++ b/meta/recipes-extended/tzdata/tzdata.inc @@ -60,8 +60,8 @@ pkg_postinst_${PN} () { tz=$(sed -e 's:#.*::' -e 's:[[:space:]]*::g' -e '/^$/d' "${src}") fi - if [ -z ${tz} ] ; then - return 0 + if [ -z "${tz}" ] ; then + exit 0 fi if [ ! -e "$D${datadir}/zoneinfo/${tz}" ] ; then |