From d66a7fd810be56c54a9b65993986912067c1e69b Mon Sep 17 00:00:00 2001 From: Philip Hands Date: Thu, 12 Nov 2015 20:29:48 +0100 Subject: 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 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/ -- cgit v1.2.3-70-g09d2