diff --git a/modules/date.sh b/modules/date.sh index 4b41f986..31f3782d 100755 --- a/modules/date.sh +++ b/modules/date.sh @@ -1,8 +1,8 @@ #!/bin/bash export TZ=UTC -if (( $# )) && ! read -r TZ < <(IFS=_; find -L /usr/share/zoneinfo/posix -type f -iname "*$**" -printf '%P\n' -quit); then - echo "No match for '$*'." >&2 +if (( $# )) && ! read -r TZ < <(IFS=_; find -L /usr/share/zoneinfo/posix -type f -not -iname 'West' -iname "*$**" -printf '%P\n' -quit); then + echo "No match for '$*'." exit 1 fi if [[ $TZ != UTC ]]; then