Update Dockerfile

This commit is contained in:
Alexandre
2026-01-11 17:04:35 +01:00
committed by GitHub
parent 217a7c7cd1
commit 6f76debdd6

View File

@@ -122,8 +122,13 @@ RUN set -e; \
-o "/tmp/${name}.crx"; \
rm -rf "${extensions_dir:?}/${name}"; \
mkdir -p "${extensions_dir}/${name}"; \
unzip -q "/tmp/${name}.crx" -d "${extensions_dir}/${name}"; \
rm "/tmp/${name}.crx"; \
rc=0; \
unzip -q "/tmp/${name}.crx" -d "${extensions_dir}/${name}" || rc=$$?; \
if [ "$$rc" -ne 0 ] && [ "$$rc" -ne 1 ]; then \
echo "ERROR: unzip failed for ${name} (rc=$$rc)"; \
exit "$$rc"; \
fi; \
rm -f "/tmp/${name}.crx"; \
done; \
chown -R chrome:chrome "${extensions_dir}"