summaryrefslogtreecommitdiff
path: root/home/xyz/.local/bin/gitfork
blob: 9736c4cdfecefc2bdfe847a4ac7f25f89926a612 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

git clone "$1"
cd "$(basename "$1" .git)" || exit
git remote add upstream "$2"
if ! git checkout fly; then
	git branch fly
	git checkout fly
	git push --set-upstream origin fly
fi
pan>"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))