summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip Hands <phil@hands.com>2015-11-12 20:29:48 +0100
committerHolger Levsen <holger@layer-acht.org>2015-11-14 14:23:39 +0100
commitd66a7fd810be56c54a9b65993986912067c1e69b (patch)
tree217b6236b6e6101de7b13309e5bcb2d121e05e73
parent2ea115b734044afd031ea1e107eeb712ecce4224 (diff)
downloadjenkins.debian.net-d66a7fd810be56c54a9b65993986912067c1e69b.tar.xz
sudo doesn't encompass the redirection
-rwxr-xr-xupdate_jdn.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/update_jdn.sh b/update_jdn.sh
index f4c14f86..a353c10b 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@ens-lyon.org" $TMPFILE | grep -v Lunar | sudo grep -v "j.schauer@email.de" >> /var/lib/jenkins/userContent/THANKS
+ grep -v -e "samuel.thibault@ens-lyon.org" -e Lunar -e "j.schauer@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/