summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/tzdata
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2015-04-08 14:40:44 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-05-15 18:12:05 +0100
commitff58b2b6d07725adedddb709000775af8da3c5db (patch)
tree6d112a03d2f670effcf06e1ee9a832d98bfe50fa /meta/recipes-extended/tzdata
parent3bbdb42c17222e78e3a4d043f26c9b2dce6d6891 (diff)
downloadopenembedded-core-ff58b2b6d07725adedddb709000775af8da3c5db.tar.gz
openembedded-core-ff58b2b6d07725adedddb709000775af8da3c5db.tar.bz2
openembedded-core-ff58b2b6d07725adedddb709000775af8da3c5db.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" (From OE-Core master 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.inc4
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