fix: check file exists in dev container script (#5755)

Signed-off-by: ixlmar <206748156+ixlmar@users.noreply.github.com>
This commit is contained in:
ixlmar 2025-07-04 10:29:17 +02:00 committed by GitHub
parent 3869b969a6
commit 471bf0b4fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -180,9 +180,11 @@ def main():
env_files = [
JENKINS_PROPS_PATH,
DEV_CONTAINER_ENV_PATH,
DEV_CONTAINER_USER_ENV_PATH,
]
if DEV_CONTAINER_USER_ENV_PATH.exists():
env_files.append(DEV_CONTAINER_USER_ENV_PATH)
env = _load_env(env_files)
_handle_rootless(env_inout=env)