Commit e11f0b2a authored by Yann D'Isanto's avatar Yann D'Isanto
Browse files

fix(keep-retired-app): exclude path on domain parsing

parent ee639ef6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -647,7 +647,7 @@ stages:
    for route in $app_routes
    do
      route_hostname=$(echo "$route" | cut -d '.' -f1)
      route_domain=$(echo "$route" | cut -d '.' -f2-)
      route_domain=$(echo "$route" | cut -d '.' -f2- | cut -d '/' -f1)
      cf unmap-route "$app_name" "$route_domain" --hostname="$route_hostname"
    done
  }