diff --git a/plugins/common/functions b/plugins/common/functions index 090c192ea..476422fe3 100755 --- a/plugins/common/functions +++ b/plugins/common/functions @@ -1001,7 +1001,7 @@ get_app_urls() { local port_map app_vhost local app_vhosts=$(get_app_domains "$APP") for port_map in $DOKKU_PROXY_PORT_MAP; do - local scheme="$(awk -F ':' '{ print $1 }' <<< "$port_map")" + local scheme="$(awk -F ':' '{ print $1 }' <<< "$port_map")" local listen_port="$(awk -F ':' '{ print $2 }' <<< "$port_map")" for app_vhost in $app_vhosts; do if [[ "$listen_port" != "80" ]] && [[ "$listen_port" != "443" ]]; then diff --git a/tests/unit/40_core_2.bats b/tests/unit/40_core_2.bats index 245a1999e..479b02213 100644 --- a/tests/unit/40_core_2.bats +++ b/tests/unit/40_core_2.bats @@ -28,7 +28,7 @@ assert_url() { echo "output: "$output echo "status: "$status echo "url: ${url}" - assert_output < <("${url}") + assert_output "${url}" } build_nginx_config() { @@ -78,8 +78,6 @@ build_nginx_config() { assert_url "https://dokku.me" build_nginx_config assert_url "https://${TEST_APP}.dokku.me" - add_domain "test.dokku.me" - assert_url "https://test.dokku.me" "https://${TEST_APP}.dokku.me" } @test "(core) urls (wildcard ssl)" {