Skip to content

Commit 64a9b74

Browse files
committed
Update entrypoint.sh
1 parent ad9e17e commit 64a9b74

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docker/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ verify_output "$DEST_DIR"
297297

298298
# Fix ownership of generated files for host user access
299299
if [[ -n "${HOST_UID:-}" ]] && [[ -n "${HOST_GID:-}" ]]; then
300-
find /docker \( -type f -o -type d \) -user root -exec chown "$HOST_UID:$HOST_GID" {} +
300+
find /docker \( -type f -o -type d \) -user root -not -path "/docker/.git/*" -exec chown "$HOST_UID:$HOST_GID" {} + 2>/dev/null || true
301301
fi
302302

303303
log_info "Build process completed successfully"

0 commit comments

Comments
 (0)