ignore VERSIONS_CONFIG_PATH

This commit is contained in:
Terrence
2025-01-13 03:19:39 +08:00
parent 678147a9bd
commit 81582dff65

View File

@@ -149,7 +149,10 @@ def main():
print(f"Versions written to {versions_path}") print(f"Versions written to {versions_path}")
# copy versions.json to server # copy versions.json to server
versions_config_path = os.environ['VERSIONS_CONFIG_PATH'] versions_config_path = os.environ.get('VERSIONS_CONFIG_PATH')
if not versions_config_path:
print("VERSIONS_CONFIG_PATH is not set")
exit(1)
ret = os.system(f'scp {versions_path} {versions_config_path}') ret = os.system(f'scp {versions_path} {versions_config_path}')
if ret != 0: if ret != 0:
print(f'Failed to copy versions.json to server') print(f'Failed to copy versions.json to server')