fix(unify-backend): remove leading './' from file paths in unify script to ensure correct file copying

This commit is contained in:
Ivan
2026-04-14 00:13:48 -05:00
parent 55e2260788
commit 3b8d1f0758

View File

@@ -21,6 +21,7 @@ fi
unified=0
while IFS= read -r -d '' rel; do
rel="${rel#./}"
arm64_file="$ARM64_DIR/$rel"
x64_file="$X64_DIR/$rel"
@@ -38,7 +39,7 @@ while IFS= read -r -d '' rel; do
cp "$arm64_file" "$x64_file"
echo " unified: $rel"
unified=$((unified + 1))
done < <(cd "$ARM64_DIR" && find . -type f -print0 | sed -z 's|^\./||')
done < <(cd "$ARM64_DIR" && find . -type f -print0)
if [[ $unified -gt 0 ]]; then
echo "unify-backend-plain-files: copied $unified file(s) from arm64 → x64"