trim whitespace from url

This commit is contained in:
Jose Diaz-Gonzalez
2016-05-08 14:59:20 -04:00
parent 6cebc4c92e
commit 4bddb3954c

View File

@@ -334,7 +334,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() {