diff options
Diffstat (limited to 'packages/all-poky-linux/tzdata/tzdata/latest.pkg_postinst')
-rw-r--r-- | packages/all-poky-linux/tzdata/tzdata/latest.pkg_postinst | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/packages/all-poky-linux/tzdata/tzdata/latest.pkg_postinst b/packages/all-poky-linux/tzdata/tzdata/latest.pkg_postinst index cb36ce81a097..49a4cce0a614 100644 --- a/packages/all-poky-linux/tzdata/tzdata/latest.pkg_postinst +++ b/packages/all-poky-linux/tzdata/tzdata/latest.pkg_postinst @@ -2,17 +2,17 @@ set -e etc_lt="$D/etc/localtime" src="$D/etc/timezone" - if [ -e ${src} ] ; then - tz=$(sed -e 's:#.*::' -e 's:[[:space:]]*::g' -e '/^$/d' "${src}") + if [ -e "$src" ]; then + tz=$(sed -e 's:#.*::' -e 's:[[:space:]]*::g' -e '/^$/d' "$src") fi - if [ ! -z "${tz}" -a ! -e "$D/usr/share/zoneinfo/${tz}" ] ; then - echo "You have an invalid TIMEZONE setting in ${src}" - echo "Your ${etc_lt} has been reset to Universal; enjoy!" + if [ ! -z "$tz" -a ! -e "$D/usr/share/zoneinfo/$tz" ]; then + echo "You have an invalid TIMEZONE setting in $src" + echo "Your $etc_lt has been reset to Universal; enjoy!" tz="Universal" - echo "Updating ${etc_lt} with $D/usr/share/zoneinfo/${tz}" - if [ -L ${etc_lt} ] ; then - rm -f "${etc_lt}" + echo "Updating $etc_lt with $D/usr/share/zoneinfo/$tz" + if [ -L "$etc_lt" ]; then + rm -f "$etc_lt" fi - ln -s "/usr/share/zoneinfo/${tz}" "${etc_lt}" + ln -s "/usr/share/zoneinfo/$tz" "$etc_lt" fi |