From 1299f00f3a0fa66affab942285ee83b0a3f8fcf4 Mon Sep 17 00:00:00 2001 From: Christian Kuhn <lolli@schwarzbu.ch> Date: Thu, 23 Jun 2016 14:11:17 +0200 Subject: [PATCH] [TASK] Stabilize duplicate exception find script This opens stdin for awk-grep for write only, otherwise the internal awk communication is messed up, thus ack is slightly less to dependend on outer environment, e.g Bamboo. Change-Id: I228643ee0698aa2c30aa52fc11024fc041d95d97 Resolves: #76758 Releases: master Reviewed-on: https://review.typo3.org/48655 Reviewed-by: Susanne Moog <typo3@susannemoog.de> Tested-by: Susanne Moog <typo3@susannemoog.de> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: Christian Kuhn <lolli@schwarzbu.ch> --- typo3/sysext/core/Build/Scripts/duplicateExceptionCodeCheck.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typo3/sysext/core/Build/Scripts/duplicateExceptionCodeCheck.sh b/typo3/sysext/core/Build/Scripts/duplicateExceptionCodeCheck.sh index e5066b850533..3d6f2dfd5f6d 100755 --- a/typo3/sysext/core/Build/Scripts/duplicateExceptionCodeCheck.sh +++ b/typo3/sysext/core/Build/Scripts/duplicateExceptionCodeCheck.sh @@ -28,7 +28,7 @@ IGNORE=("1270853884") ACK=${ACK:-ack-grep} # Respect only php files and ignore files within a "Tests" directory -EXCEPTIONS=$(${ACK} --type php --ignore-dir Tests 'throw new' -A5 | grep '[[:digit:]]\{10\}') +EXCEPTIONS=$(${ACK} --type php --ignore-dir Tests 'throw new' -A5 0>&- | grep '[[:digit:]]\{10\}') DUPLICATES=$(echo ${EXCEPTIONS} | awk '{ for(i=1; i<=NF; i++) { -- GitLab