[debian-edu-commits] debian-edu/ 01/01: debian/mail_stats_to_list: make error handling more robust.
Holger Levsen
holger at moszumanska.debian.org
Sun Jan 25 09:21:17 UTC 2015
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository debian-edu-doc.
commit 52d79bbdbe53cd6b919ca8769114c7730dd4835b
Author: Holger Levsen <holger at layer-acht.org>
Date: Sun Jan 25 10:21:04 2015 +0100
debian/mail_stats_to_list: make error handling more robust.
---
debian/changelog | 1 +
debian/mail_stats_to_list | 5 +++--
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 963139d..5466d62 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ debian-edu-doc (1.6~20150106~8.0+edu0~alpha2) UNRELEASED; urgency=medium
* Update Debian Edu Jessie manual from the wiki.
* Update debian/copyright from the wikis using the update-copyright
target.
+ * debian/mail_stats_to_list: make error handling more robust.
[ Jessie Manual translation updates ]
* German: Wolfgang Schweer.
diff --git a/debian/mail_stats_to_list b/debian/mail_stats_to_list
index d55ef24..f7e8528 100755
--- a/debian/mail_stats_to_list
+++ b/debian/mail_stats_to_list
@@ -28,7 +28,8 @@
cd ~holger/debian-edu-doc
git pull > /dev/null 2>&1 && git status 2>&1
-if [ $(echo $?) -ne 0 ] ; then
+RESULT=$?
+if [ $RESULT -ne 0 ] ; then
echo "Problem with git clone at paradis.debian.org:~holger/debian-edu-doc - please fix." | mail -s "problem with debian-edu-doc status mails" holger at layer-acht.org
exit 1
fi
@@ -37,7 +38,7 @@ fi
# loop through some manuals
#
cd documentation
-if [ $1 = "all" ] ; then
+if [ "$1" = "all" ] ; then
MANUALS="debian-edu-jessie debian-edu-wheezy rosegarden audacity"
else
MANUALS="debian-edu-jessie"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/debian-edu-doc.git
More information about the debian-edu-commits
mailing list