mirror of
https://github.com/arangodb/kube-arangodb.git
synced 2024-12-14 11:57:37 +00:00
substring
This commit is contained in:
parent
158df395eb
commit
7de70d3307
1 changed files with 2 additions and 2 deletions
|
@ -26,8 +26,8 @@ def fetchParamsFromGitLog() {
|
||||||
def idx = opt.indexOf('=');
|
def idx = opt.indexOf('=');
|
||||||
println("Processing option ${opt} with idx=${idx}");
|
println("Processing option ${opt} with idx=${idx}");
|
||||||
if (idx > 0) {
|
if (idx > 0) {
|
||||||
def key = opt.subString(0, idx);
|
def key = opt.substring(0, idx);
|
||||||
def value = opt.subString(idx+1);
|
def value = opt.substring(idx+1);
|
||||||
params[key] = value;
|
params[key] = value;
|
||||||
println("Overwriting params.${key} with ${value}");
|
println("Overwriting params.${key} with ${value}");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue