artifacts: download-artifact CLI. makes sure to only used local .deb, or download from OCI, never build

This commit is contained in:
Ricardo Pardini
2023-05-09 21:00:14 +02:00
parent 1fa54e030d
commit ca46f86dec
3 changed files with 39 additions and 17 deletions

View File

@@ -44,7 +44,7 @@ logging_init
traps_init
# make sure git considers our build system dir as a safe dir (only if actually building)
[[ "${CONFIG_DEFS_ONLY}" != "yes" ]] && git_ensure_safe_directory "${SRC}"
[[ "${CONFIG_DEFS_ONLY}" != "yes" && "${PRE_PREPARED_HOST}" != "yes" ]] && git_ensure_safe_directory "${SRC}"
# Execute the main CLI entrypoint.
cli_entrypoint "$@"