fix(docker): update sed syntax for Linux compatibility

- Change sed -i '' to sed -i for Linux compatibility
- Fix BSD sed syntax that was causing docker-prep.sh to fail

Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
root 2026-05-09 22:25:49 +00:00
parent ce7e04a158
commit 28807d4889

View File

@ -71,7 +71,7 @@ rewrite_package_json() {
while IFS='=' read -r pkg_name tarball; do
[[ -z "$pkg_name" ]] && continue
# Replace "^0.1.0" (or any semver/file: ref) with "file:../.docker-deps/<tarball>"
sed -i '' "s|\"${pkg_name}\": \"[^\"]*\"|\"${pkg_name}\": \"file:${rel_prefix}.docker-deps/${tarball}\"|g" "$tmp"
sed -i "s|\"${pkg_name}\": \"[^\"]*\"|\"${pkg_name}\": \"file:${rel_prefix}.docker-deps/${tarball}\"|g" "$tmp"
done < "$TARBALL_MAP_FILE"
mv "$tmp" "$pkg_file"