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
diff --git a/policy-management/src/main/server-gen/bin/deploy-artifact b/policy-management/src/main/server-gen/bin/deploy-artifact
index dab945a..b02c4e0 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 @@
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
}