trim whitespace from url

This commit is contained in:
Jose Diaz-Gonzalez
2016-05-08 15:03:25 -04:00
parent 0992ffe49e
commit f9d5e92d27

View File

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