From 2f4ba92b55e1385713c0480375f277a03a9ffe56 Mon Sep 17 00:00:00 2001 From: xyz Date: Tue, 14 Jun 2022 17:43:26 -0700 Subject: init --- .gitignore | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .gitignore (limited to '.gitignore') diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5ed126e --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +# https://stackoverflow.com/a/9227991/9008720 +# https://stackoverflow.com/q/987142/9008720 +# not fully understood, single asterisk * behave so weird +/*/** +!/*/*/ +!/*/*/PKGBUILD -- cgit v1.2.3-70-g09d2 >
summaryrefslogtreecommitdiff
blob: b3174749f8a9c8e85a7cbb4ffe1e8fc2b12fd516 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh
# DATE From To

while getopts cfF:t:T: opt; do
	case $opt in
		c) tz_from="Asia/Shanghai";;
		f) tz_from="$(tzselect)";;
		F) tz_from="$OPTARG";;
		# one extra ',' at the end will not let `for tz in ...` loop one extra time?
		t)	for i in $(seq "$OPTARG"); do
				tz_to="$(tzselect),$tz_to"
			done;;
		T) tz_to="$OPTARG,$tz_to";;
		\?) exit 1;;
	esac
done
shift $((OPTIND-1))