Make dev-check check for SSH instead of non-HTTP

In order to determine, whether we are developers or not, check the
git-remotes for SSH-URLs instead of checking for the non-existence of
any HTTP-URLs. This fixes dev-mode not being detected properly when
curious devs add other HTTP-remotes such as upstream OpenWRT.

This also makes the check consistent with the check done in the main
"iop" script in the root.
This commit is contained in:
Andreas Gnau 2020-06-23 11:48:48 +02:00
parent 95e887087f
commit 986fc5ea78

View file

@ -182,7 +182,7 @@ function genconfig {
}
git remote -v | grep -q http || {
git remote -v | grep -qE '(git@|ssh://)' && {
DEVELOPER=1
bcmAllowed=0