aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/property_utils.sh
diff options
context:
space:
mode:
authorPatrice Clement <monsieurp@gentoo.org>2016-07-26 11:03:51 +0200
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>2016-08-18 10:01:25 +0200
commitb66e224d79d66086164655b9030bf6dffb2f32a2 (patch)
tree93cef0798c3433034491287b1ea26aacc0e26b31 /scripts/property_utils.sh
parent81c8363c0967dac5ed5320dd5e60ed16b3df2ef6 (diff)
downloadsonarqube-b66e224d79d66086164655b9030bf6dffb2f32a2.tar.gz
sonarqube-b66e224d79d66086164655b9030bf6dffb2f32a2.zip
wc accepts files as input parameter.
Signed-off-by: Sébastien Lesaint <sebastien.lesaint@sonarsource.com>
Diffstat (limited to 'scripts/property_utils.sh')
-rwxr-xr-xscripts/property_utils.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/property_utils.sh b/scripts/property_utils.sh
index 8ac285af760..ea1545d5b24 100755
--- a/scripts/property_utils.sh
+++ b/scripts/property_utils.sh
@@ -10,7 +10,7 @@ set -euo pipefail
function cnt_lines() {
local FILE=$1
- cat $FILE | wc -l
+ wc -l $1
}
function write_prop() {