X-Git-Url: https://zdv2.bktei.com/gitweb/BK-2020-03.git/blobdiff_plain/f34f63b7d654d669aa300e4de09aeaf678c7699b..3621642d7b74e08f23d4d1958d5c0cbe362f8cad:/unitproc/bktemp-setTimeZoneEV?ds=sidebyside diff --git a/unitproc/bktemp-setTimeZoneEV b/unitproc/bktemp-setTimeZoneEV index 8b5370b..0855c1e 100644 --- a/unitproc/bktemp-setTimeZoneEV +++ b/unitproc/bktemp-setTimeZoneEV @@ -8,14 +8,14 @@ try() { "$@" || die "cannot $*"; } setTimeZoneEV(){ # Desc: Set time zone environment variable TZ # Usage: setTimeZoneEV arg1 - # Version 0.1.1 + # Version 0.1.2 # Input: arg1: 'date'-compatible timezone string (ex: "America/New_York") # TZDIR env var (optional; default: "/usr/share/zoneinfo") # Output: exports TZ # exit code 0 on success # exit code 1 on incorrect number of arguments # exit code 2 if unable to validate arg1 - # Depends: yell, printenv, bash 5 + # Depends: yell(), printenv 8.30, bash 5.0.3 # Tested on: Debian 10 local tzDir returnState argTimeZone