Merge "Tidy the do-it script to conform to bash8"
This commit is contained in:
commit
fb96cbede9
4
do-it.sh
4
do-it.sh
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# provide debugging output when desired
|
# provide debugging output when desired
|
||||||
function DEBUG() {
|
function DEBUG {
|
||||||
[ "$GITDM_DEBUG" == "on" ] && echo "DEBUG: $1"
|
[ "$GITDM_DEBUG" == "on" ] && echo "DEBUG: $1"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ GITDM_DEBUG=${GITDM_DEBUG:-"off"}
|
||||||
# determine if a given parameter is a date matching the format YYYY-MM-DD,
|
# determine if a given parameter is a date matching the format YYYY-MM-DD,
|
||||||
# i.e. 2013-09-13 This is used to decide if git should specify a start
|
# i.e. 2013-09-13 This is used to decide if git should specify a start
|
||||||
# date with '--since YYYY-MM-DD' rather than use an absolute changeset id
|
# date with '--since YYYY-MM-DD' rather than use an absolute changeset id
|
||||||
function IS_DATE() {
|
function IS_DATE {
|
||||||
[[ $1 =~ ^[0-9][0-9][0-9][0-9]\-[0-9][0-9]\-[0-9][0-9]$ ]]
|
[[ $1 =~ ^[0-9][0-9][0-9][0-9]\-[0-9][0-9]\-[0-9][0-9]$ ]]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue