summaryrefslogtreecommitdiff
path: root/home/xyz/.local
diff options
context:
space:
mode:
Diffstat (limited to 'home/xyz/.local')
-rwxr-xr-xhome/xyz/.local/bin/dateft5
1 files changed, 3 insertions, 2 deletions
diff --git a/home/xyz/.local/bin/dateft b/home/xyz/.local/bin/dateft
index 8332dfb2..269cb7f0 100755
--- a/home/xyz/.local/bin/dateft
+++ b/home/xyz/.local/bin/dateft
@@ -6,10 +6,11 @@ while getopts cfF:t:T: opt; do
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="$tz_to,$(tzselect)"
+ tz_to="$(tzselect),$tz_to"
done;;
- T) tz_to="$OPTARG";;
+ T) tz_to="$OPTARG,$tz_to";;
\?) exit 1;;
esac
done