1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-14 14:33:07 +01:00

ensure to load buildconfig from selected git sha

This commit is contained in:
andreas
2023-10-05 19:37:46 +02:00
parent 12288edbf8
commit 4af9434b29
4 changed files with 28 additions and 8 deletions

View File

@@ -15,12 +15,12 @@ function fillUserAndRepo($vars=null,$source=null){
}
foreach (array('user','repo') as $n){
if (! isset($source[$n])){
die("missing parameter $n");
throw new Exception("missing parameter $n");
}
$v=$source[$n];
$av=$allowed[$n];
if (! in_array($v,$av)){
die("value $v for $n not allowed");
throw new Exception("value $v for $n not allowed");
}
$vars[$n]=$v;
}