trim whitespace from url

This commit is contained in:
Jose Diaz-Gonzalez
2016-05-08 15:15:40 -04:00
parent a209106b7c
commit 6f294aef3d

View File

@@ -328,7 +328,7 @@ service_version() {
get_url_from_config() {
local EXISTING_CONFIG="$1"
local CONFIG_VAR="$2"
echo "$EXISTING_CONFIG" | grep "$CONFIG_VAR" | sed "s/$CONFIG_VAR:\s*//"
echo "$EXISTING_CONFIG" | grep "$CONFIG_VAR" | sed "s/$CONFIG_VAR:\s*//" | xargs
}
promote() {