1
0
Fork 0
mirror of https://github.com/arangodb/kube-arangodb.git synced 2024-12-14 11:57:37 +00:00

substring

This commit is contained in:
Ewout Prangsma 2018-03-27 09:06:46 +02:00
parent 158df395eb
commit 7de70d3307
No known key found for this signature in database
GPG key ID: 4DBAD380D93D0698

View file

@ -26,8 +26,8 @@ def fetchParamsFromGitLog() {
def idx = opt.indexOf('=');
println("Processing option ${opt} with idx=${idx}");
if (idx > 0) {
def key = opt.subString(0, idx);
def value = opt.subString(idx+1);
def key = opt.substring(0, idx);
def value = opt.substring(idx+1);
params[key] = value;
println("Overwriting params.${key} with ${value}");
}