[Qa-jenkins-scm] [jenkins.debian.net] 02/04: sudo doesn't encompass the redirection
Holger Levsen
holger at moszumanska.debian.org
Sat Nov 14 13:23:58 UTC 2015
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit d66a7fd810be56c54a9b65993986912067c1e69b
Author: Philip Hands <phil at hands.com>
Date: Thu Nov 12 20:29:48 2015 +0100
sudo doesn't encompass the redirection
---
update_jdn.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/update_jdn.sh b/update_jdn.sh
index f4c14f8..a353c10 100755
--- a/update_jdn.sh
+++ b/update_jdn.sh
@@ -363,9 +363,9 @@ if [ "$HOSTNAME" = "jenkins" ] || [ "$HOSTNAME" = "jenkins-test-vm" ] ; then
sudo cp -pr README INSTALL TODO CONTRIBUTING d-i-preseed-cfgs /var/lib/jenkins/userContent/
git log | grep ^Author| cut -d " " -f2-|sort -u > $TMPFILE
echo "----" >> $TMPFILE
- sudo cat THANKS.head > /var/lib/jenkins/userContent/THANKS
+ sudo tee /var/lib/jenkins/userContent/THANKS > /dev/null < THANKS.head
# samuel, lunar and josch committed with several commiters, only display one
- grep -v "samuel.thibault at ens-lyon.org" $TMPFILE | grep -v Lunar | sudo grep -v "j.schauer at email.de" >> /var/lib/jenkins/userContent/THANKS
+ grep -v -e "samuel.thibault at ens-lyon.org" -e Lunar -e "j.schauer at email.de" $TMPFILE | sudo tee -a /var/lib/jenkins/userContent/THANKS > /dev/null
rm $TMPFILE
sudo cp -pr userContent /var/lib/jenkins/
cd /var/lib/jenkins/userContent/
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list