aboutsummaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2012-01-01 01:03:29 +0100
committerTom Gundersen <teg@jklm.no>2012-01-01 01:04:52 +0100
commit5dd3a4eb3e5405641bf3e5eaeac07883efd64c5e (patch)
treee29f7e5550df67933fa1ad705f1e1b4d0f01b55b /functions
parent6e62ab6a4346023674c7304cf05a5dfebdb265ba (diff)
downloadinitscripts-5dd3a4eb3e5405641bf3e5eaeac07883efd64c5e.tar.xz
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 <lisaev@umail.iu.edu> Signed-off-by: Tom Gundersen <teg@jklm.no>
Diffstat (limited to 'functions')
-rw-r--r--functions2
1 files changed, 1 insertions, 1 deletions
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