aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>2016-05-23 16:48:02 +0200
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>2016-05-23 16:56:27 +0200
commit33e4a00751aa65d701c65a7a581d6a72f3241abe (patch)
treeb0fa115857eae16c8dc8a18a9d71d43b19c927ad /scripts
parent047e954bd5ea2699776ac982e0570fc301c83c18 (diff)
downloadsonarqube-33e4a00751aa65d701c65a7a581d6a72f3241abe.tar.gz
sonarqube-33e4a00751aa65d701c65a7a581d6a72f3241abe.zip
[script] use local variable rather than function arguments
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/property_utils.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/property_utils.sh b/scripts/property_utils.sh
index a58fb22b64e..3644fa992fa 100755
--- a/scripts/property_utils.sh
+++ b/scripts/property_utils.sh
@@ -10,7 +10,7 @@ set -euo pipefail
function cnt_lines() {
FILE=$1
- cat $1 | wc -l
+ cat $FILE | wc -l
}
function write_prop() {
@@ -46,11 +46,11 @@ function set_property() {
NEW_LINE_COUNT=$(cnt_lines $FILE)
if [[ $LINE_COUNT -gt $NEW_LINE_COUNT ]]; then
- write_prop $1 $2 $3
+ write_prop $PROPERTY $VALUE $FILE
fi
else
- write_prop $1 $2 $3
+ write_prop $PROPERTY $VALUE $FILE
fi
}