Remove final ' placed at the end of each line by sed 59/40159/1
authoragardner <agardner@linuxfoundation.org>
Thu, 24 Aug 2017 19:43:34 +0000 (15:43 -0400)
committeragardner <agardner@linuxfoundation.org>
Thu, 24 Aug 2017 19:43:34 +0000 (15:43 -0400)
I dont think the ' does anything good, as it ends up in the output
remove extraneous cat

Change-Id: I4ca62672aa361d370275bd74864f0fc179da9f0b
Signed-off-by: agardner <agardner@linuxfoundation.org>
jjb/ci_gate_security/anteater-report-to-gerrit.sh

index 00a78ce..a749d1d 100644 (file)
@@ -13,7 +13,7 @@ if [[ -e securityaudit.log ]] ; then
         EXITSTATUS=1
     fi
 
-    cat securityaudit.log  | awk -F"ERROR - " '{print $2}' | sed -e "s/\"/\\\\\"/g;s/\'/\\\\\'/g"> shortlog
+    awk -F"ERROR - " '{print $2}' securityaudit.log | sed -e "s/\"/\\\\\"/g;s/\'/\\\\/g"> shortlog
 
     ssh -p 29418 gerrit.opnfv.org \
         "gerrit review -p $GERRIT_PROJECT \