aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>2016-08-22 11:48:39 +0200
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>2016-08-22 11:48:39 +0200
commit6cee9fdcad049ca21606983b05a0a4cfc13ffd53 (patch)
tree052f9ae44790e43ac7e39f82fc51d0185b42940c /scripts
parent2c0138cc7777e8556c0ee1f5f76d69b0b92094db (diff)
downloadsonarqube-6cee9fdcad049ca21606983b05a0a4cfc13ffd53.tar.gz
sonarqube-6cee9fdcad049ca21606983b05a0a4cfc13ffd53.zip
Revert "wc accepts files as input parameter."
This reverts commit b66e224d79d66086164655b9030bf6dffb2f32a2. if FILE variable contains bash variables (such as $HOME) they are not resolved and script fails (because of 'set -euo pipefail')
Diffstat (limited to 'scripts')
-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 ea1545d5b24..8ac285af760 100755
--- a/scripts/property_utils.sh
+++ b/scripts/property_utils.sh
@@ -10,7 +10,7 @@ set -euo pipefail
function cnt_lines() {
local FILE=$1
- wc -l $1
+ cat $FILE | wc -l
}
function write_prop() {