diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-04-23 08:12:42 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-04-23 08:12:42 +0200 |
commit | 4b2f418d122b7747ad7beaaf5f333c5fca16b89c (patch) | |
tree | 2faa1c728a20666c1d5d05498860ccab881cb48b /setup-timezone.in | |
parent | f912bc78a190325bcf8e5d61a98dd248926af90d (diff) | |
download | alpine-conf-4b2f418d122b7747ad7beaaf5f333c5fca16b89c.zip |
setup-timezone: rename 'folder' to 'directory'
This is unix...
Diffstat (limited to 'setup-timezone.in')
-rwxr-xr-x | setup-timezone.in | 8 |
1 files changed, 4 insertions, 4 deletions
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 |