From 5dd3a4eb3e5405641bf3e5eaeac07883efd64c5e Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Sun, 1 Jan 2012 01:03:29 +0100 Subject: timezone: correct check for when there is nothing to do We were unconditionally copying the zoneinfo file when we should be doing nothing. Reported-by: Leonid Isaev Signed-off-by: Tom Gundersen --- functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'functions') diff --git a/functions b/functions index 8056be0..02852b8 100644 --- a/functions +++ b/functions @@ -401,7 +401,7 @@ read_crypttab() { } set_timezone() { - local tz=$1 zonefile=/usr/share/zoneinfo/$tz + local tz=$1 zonefile=/usr/share/zoneinfo/$1 [[ $tz ]] || return 1 -- cgit v1.2.3