mirror of
https://github.com/vyos/vyos-build.git
synced 2025-10-01 20:28:40 +02:00
Make the config existence check scripts try to actually load the JSON.
This commit is contained in:
parent
90ca7062c1
commit
2f10d39a98
@ -22,14 +22,17 @@
|
|||||||
|
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
import json
|
||||||
|
|
||||||
import defaults
|
import defaults
|
||||||
|
|
||||||
|
|
||||||
print("Checking build configuration")
|
print("Checking build configuration")
|
||||||
|
|
||||||
if not os.path.exists(defaults.BUILD_CONFIG):
|
try:
|
||||||
print("Build config does not exist")
|
with open(defaults.BUILD_CONFIG, 'r') as f:
|
||||||
|
build_config = json.load(f)
|
||||||
|
except:
|
||||||
|
print("Build config does not exist or is not a valid JSON file")
|
||||||
print("Please run the ./configure script and try again")
|
print("Please run the ./configure script and try again")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user