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-10 18:10:24 +0100 |
commit | 0928eb7d84df2443e81478a7eabd16e40c99705b (patch) | |
tree | f6ae1fb05793b1912bf0120be4e1d6f9d73e71c6 /meta/recipes-extended/tzdata | |
parent | 2b775793195f30167e0e09877031daa985e85e70 (diff) | |
download | poky-0928eb7d84df2443e81478a7eabd16e40c99705b.tar.gz |
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"
(From OE-Core rev: 87429d37e72b1fd2f329d693b4d1b1229a90e0a2)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/tzdata')
-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} () { | |||
60 | tz=$(sed -e 's:#.*::' -e 's:[[:space:]]*::g' -e '/^$/d' "${src}") | 60 | tz=$(sed -e 's:#.*::' -e 's:[[:space:]]*::g' -e '/^$/d' "${src}") |
61 | fi | 61 | fi |
62 | 62 | ||
63 | if [ -z ${tz} ] ; then | 63 | if [ -z "${tz}" ] ; then |
64 | return 0 | 64 | exit 0 |
65 | fi | 65 | fi |
66 | 66 | ||
67 | if [ ! -e "$D${datadir}/zoneinfo/${tz}" ] ; then | 67 | if [ ! -e "$D${datadir}/zoneinfo/${tz}" ] ; then |