File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -80,12 +80,14 @@ if [ "$(uname)" = "Linux" ]; then
8080 if [ $? != 0 ] ; then die " Terminating..." >&2 ; exit 1 ; fi
8181 eval set -- " $args "
8282 sed=" sed -r"
83+ date=" date -d"
8384else
8485 # Darwin, BSDs
8586 args=$( getopt -o$shortopts $SV $* )
8687 if [ $? != 0 ] ; then die " Terminating..." >&2 ; exit 1 ; fi
8788 set -- $args
8889 sed=" sed -E"
90+ date=" date -j -f %Y-%m-%d"
8991fi
9092
9193while true ; do
@@ -105,16 +107,6 @@ done
105107# ----------------------------------------------------------------------
106108# The program itself
107109
108- today=$( date +%s)
109- until=$( date -d 2020-10-01 +%s)
110- if [ $today -lt $until ]; then
111- echo -e " \n** Please note that the --name switch must now be used if you want to specify" \
112- " \n a name. If a changeset is given with the -c switch, the name can be" \
113- " \n autogenerated from the commit comment, though." \
114- " \n"
115- fi
116-
117-
118110if [ " $CHG " ]; then
119111 if [ " $NAME " ]; then
120112 name=" ${NAME// _/ -} -c$CHG "
You can’t perform that action at this time.
0 commit comments