mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-23 19:22:40 +01:00
modules/date.sh: print errors to stdout
This commit is contained in:
parent
b66596d9ed
commit
5150fc6752
4
modules/date.sh
vendored
4
modules/date.sh
vendored
@ -1,8 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
export TZ=UTC
|
export TZ=UTC
|
||||||
if (( $# )) && ! read -r TZ < <(IFS=_; find -L /usr/share/zoneinfo/posix -type f -iname "*$**" -printf '%P\n' -quit); then
|
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 '$*'." >&2
|
echo "No match for '$*'."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
if [[ $TZ != UTC ]]; then
|
if [[ $TZ != UTC ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user