commit c520767dee28f93ce4f52c24e4441fdc2f0747a8 parent a4b9379579e8cae8001df3a9fbf886e0ed7415e0 Author: Alex Balgavy <alex@balgavy.eu> Date: Tue, 30 Aug 2022 19:02:29 +0200 tz: make invalid time zones fail Diffstat:
M | scripts/tz | | | 2 | ++ |
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/scripts/tz b/scripts/tz @@ -33,10 +33,12 @@ while [ $(($#)) -ne 0 ]; do ;; -s|--source) src="$2" + stat "$zonedir"/"$src" >/dev/null 2>&1 || die "Source time zone $src invalid." shift 2 ;; -t|--target) target="$2" + stat "$zonedir"/"$target" >/dev/null 2>&1 || die "Source time zone $target invalid." shift 2 ;; -h|--help)