This is probably fine, but does mean the repo has to be cloned into a folder named "edx-platform". If the test were instead:

> [[ $(basename $(git remote show -n origin 2>/dev/null | grep Fetch | cut -d: -f2-)) = "edx-platform.git" ]]

We'd avoid that restriction.