X-Git-Url: https://zdv2.bktei.com/gitweb/BK-2020-03.git/blobdiff_plain/d8708eb1722b30fd0e6c1ac1bf909f127a8fa040..f54d9fe82b676b63e56e516aa764c723057c304c:/unitproc/bktemp-setTimeZoneEV?ds=sidebyside diff --git a/unitproc/bktemp-setTimeZoneEV b/unitproc/bktemp-setTimeZoneEV index 6933752..548e1bf 100644 --- a/unitproc/bktemp-setTimeZoneEV +++ b/unitproc/bktemp-setTimeZoneEV @@ -14,7 +14,8 @@ setTimeZoneEV(){ # exit code 0 on success # exit code 1 on incorrect number of arguments # exit code 2 if unable to validate arg1 - # Depends: yell, die, try + # Depends: yell, printenv, bash 5 + # Tested on: Debian 10 ARG1="$1" local tzDir returnState if ! [[ $# -eq 1 ]]; then @@ -66,6 +67,8 @@ date --iso-8601=seconds cmd4="setTimeZoneEV Pacific/Lemuria" echo "Running:$cmd4"; $cmd4; echo "Exit code:$?" date --iso-8601=seconds; echo "==============="; sleep 2 + +try setTimeZoneEV Atlantic/Atlantis #==END sample code== # Author: Steven Baltakatei Sandoval