From 4b2f418d122b7747ad7beaaf5f333c5fca16b89c Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Wed, 23 Apr 2014 08:12:42 +0200 Subject: setup-timezone: rename 'folder' to 'directory' This is unix... --- setup-timezone.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'setup-timezone.in') diff --git a/setup-timezone.in b/setup-timezone.in index 8c81a58..f1a85c0 100755 --- a/setup-timezone.in +++ b/setup-timezone.in @@ -14,7 +14,7 @@ Sets the timezone for the system. options: -h Show this help - -z Specify the timezone as a subfolder of $zroot + -z Specify the timezone as a subdirectory of $zroot __EOF__ exit 1 } @@ -45,7 +45,7 @@ valid_tz() { while getopts "hz:" opt; do case $opt in h) usage;; - z) ZONEINFOFOLDER="$OPTARG";; + z) ZONEINFODIR="$OPTARG";; esac done @@ -57,8 +57,8 @@ zonepath=$(cat /etc/TZ 2>/dev/null) [ -z "$zonepath" ] && zonepath="UTC" while true; do - if [ -n "$ZONEINFOFOLDER" ]; then - TZ=$(posixtz "$ZONEINFOFOLDER") || echo "Failed to convert '$ZONEINFOFOLDER' to POSIX TZ" + if [ -n "$ZONEINFODIR" ]; then + TZ=$(posixtz "$ZONEINFODIR") || echo "Failed to convert '$ZONEINFODIR' to POSIX TZ" if [ -n "$TZ" ]; then echo $TZ > /etc/TZ || rm -f /etc/TZ fi -- cgit v1.2.3