aboutsummaryrefslogtreecommitdiffstats
path: root/policy-management/src
diff options
context:
space:
mode:
authorRashmi Pujar <rashmi.pujar@bell.ca>2020-01-31 10:33:13 -0500
committerRashmi Pujar <rashmi.pujar@bell.ca>2020-01-31 10:33:13 -0500
commit9d5791ad96a66ca512f44aa2944c4be64dce6453 (patch)
treebe607d5d99e49837b2547ab68405e5b1c6576df9 /policy-management/src
parentbb03caf94de4ad884e308dbce4992e370638d629 (diff)
Double quote local variables in drools tooling script
Addressing the last minor comment from Jorge on https://gerrit.onap.org/r/#/c/policy/drools-pdp/+/100774/. Tested OK with and without proxy settings. Issue-ID: POLICY-2330 Signed-off-by: Rashmi Pujar <rashmi.pujar@bell.ca> Change-Id: Ied9e0324b0f64684ccdefd20d8bed958f468bb72
Diffstat (limited to 'policy-management/src')
-rw-r--r--policy-management/src/main/server-gen/bin/deploy-artifact14
1 files changed, 7 insertions, 7 deletions
diff --git a/policy-management/src/main/server-gen/bin/deploy-artifact b/policy-management/src/main/server-gen/bin/deploy-artifact
index dab945a8..b02c4e0c 100644
--- a/policy-management/src/main/server-gen/bin/deploy-artifact
+++ b/policy-management/src/main/server-gen/bin/deploy-artifact
@@ -225,16 +225,16 @@ function setMavenProxyArgs
return 0
fi
- local proxy_creds=${http_proxy#*//}
- local proxy=${proxy_creds#*@}
- local host=${proxy%:*}
- local port=${proxy#*:}
+ local proxy_creds="${http_proxy#*//}"
+ local proxy="${proxy_creds#*@}"
+ local host="${proxy%:*}"
+ local port="${proxy#*:}"
MVN_PROXY_SETTINGS="-DproxyHost=${host} -DproxyPort=${port}"
if [[ "$proxy_creds" == *"@"* ]]; then
- local creds=${proxy_creds%%@*}
- local username=${creds%:*}
- local password=${creds#*:}
+ local creds="${proxy_creds%%@*}"
+ local username="${creds%:*}"
+ local password="${creds#*:}"
MVN_PROXY_SETTINGS+=" -DproxyUsername=${username} -DproxyPassword=${password}"
fi
}