aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/property_utils.sh
Commit message (Collapse)AuthorAgeFilesLines
* [scripts] declare bash function in portable fashionSébastien Lesaint2018-06-121-3/+3
|
* [scripts] use a more portable bash shebangSébastien Lesaint2018-06-121-1/+1
|
* Fix quoting issues causing a failure in OSX, and other quality issues (#2851)Janos Gyerik2018-01-121-8/+8
| | | | | | | | | | | | | | * Avoid useless cat * Properly quote command line arguments * Use [ \t] instead of \s for BSD sed * Do not delete commented out property settings, by matching strictly at start of line * Add forgotten double-quotes * Explicitly escape \t (advice by shellcheck.net)
* [SCRIPTS] fix argument passing in property_utils.shSébastien Lesaint2017-09-221-5/+5
|
* Revert "wc accepts files as input parameter."Sébastien Lesaint2016-08-221-1/+1
| | | | | | 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')
* wc accepts files as input parameter.Patrice Clement2016-08-181-1/+1
| | | | Signed-off-by: Sébastien Lesaint <sebastien.lesaint@sonarsource.com>
* Variables should be local to each function to avoid clashing in the global ↵Patrice Clement2016-08-181-11/+9
| | | | | | namespace. Signed-off-by: Sébastien Lesaint <sebastien.lesaint@sonarsource.com>
* [script] use local variable rather than function argumentsSébastien Lesaint2016-05-231-3/+3
|
* [script] make property_utils.sh run on OSX + improve "if grep"Priit Liivak2016-05-231-13/+15
| | | | | | | Now works on OSX: inline is required since in OSX providing '' as variable does not work. More reliable OS independent version of this script. Fixed incorrect backslash count in REGEX variable Applied recommendations for "if grep" http://mywiki.wooledge.org/BashPitfalls#if_.5Bgrep_foo_myfile.5D
* [SCRIPTS] add support to set non existing property in property_utilsSébastien Lesaint2015-08-061-11/+23
|
* [SCRIPTS] add support for patches to start.shSébastien Lesaint2015-08-061-0/+43
use seperate start and stop to avoid unpredictable errors when applying patches on a live SQ instance