Mention the adequate SCM tool within the subject line
This commit is contained in:
parent
770b8a2060
commit
3e5ce18155
|
@ -147,12 +147,15 @@ _usage()
|
||||||
#main
|
#main
|
||||||
#parse options
|
#parse options
|
||||||
update=_deforaos_update_cvs
|
update=_deforaos_update_cvs
|
||||||
|
scm=
|
||||||
while getopts "CgO:" name; do
|
while getopts "CgO:" name; do
|
||||||
case "$name" in
|
case "$name" in
|
||||||
C)
|
C)
|
||||||
|
scm="CVS"
|
||||||
update=_deforaos_update_cvs
|
update=_deforaos_update_cvs
|
||||||
;;
|
;;
|
||||||
g)
|
g)
|
||||||
|
scm="Git"
|
||||||
update=_deforaos_update_git
|
update=_deforaos_update_git
|
||||||
;;
|
;;
|
||||||
O)
|
O)
|
||||||
|
@ -171,4 +174,4 @@ if [ $# -ne 0 ]; then
|
||||||
fi
|
fi
|
||||||
[ -n "$ROOT" ] || ROOT=$($MKTEMP -d -p "$HOME" "temp.XXXXXX")
|
[ -n "$ROOT" ] || ROOT=$($MKTEMP -d -p "$HOME" "temp.XXXXXX")
|
||||||
[ -n "$ROOT" ] || exit 2
|
[ -n "$ROOT" ] || exit 2
|
||||||
$update 2>&1 | $MAIL -s "Daily CVS update: $DATE" "$EMAIL"
|
$update 2>&1 | $MAIL -s "Daily $scm update: $DATE" "$EMAIL"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user