Révision 6d91f38e
Ajouté par Julien Enselme il y a plus de 10 ans
bin/git-report.sh | ||
---|---|---|
3 | 3 |
. /users/guest/assos/bin/scripts-config.sh |
4 | 4 |
. /users/guest/assos/bin/scripts-utils.sh |
5 | 5 |
|
6 |
if ! check_if_work_tree_clean ; then
|
|
6 |
if ! `check_if_work_tree_clean` ; then
|
|
7 | 7 |
mail_unclean_work_tree "[git] WORK TREE UNCLEAN" |
8 | 8 |
fi |
9 | 9 |
|
10 | 10 |
git_log=`git log -p --after=yesterday` |
11 |
if [ -n $git_log ] ; then
|
|
11 |
if [ -n "$git_log" ] ; then
|
|
12 | 12 |
echo $git_log | mail -s "[git] Report" |
13 | 13 |
fi |
14 | 14 |
|
Formats disponibles : Unified diff
Test added for git where posing trouble
We must use
to launch function in a subshell, other wise the whole
script exit with the instruction 'exit 1' or 'exit 0'.
We must use " around variable for test. Otherwise, we get a Unexpected
operator error.