fix(ci): replace bash here-string with POSIX parameter expansion

The CI container uses sh (not bash), which doesn't support the <<<
here-string syntax, causing "Syntax error: redirection unexpected".
This commit is contained in:
kite 2026-06-17 14:43:06 +08:00
parent 11b42c3826
commit b46f48e40d

View file

@ -114,7 +114,10 @@ jobs:
win32-x64:opencodereview-windows-amd64.exe:opencodereview.exe"
for entry in $PLATFORMS; do
IFS=':' read -r platform_dir dist_binary dest_name <<< "$entry"
platform_dir="${entry%%:*}"
rest="${entry#*:}"
dist_binary="${rest%%:*}"
dest_name="${rest#*:}"
pkg_dir="npm/$platform_dir"
mkdir -p "$pkg_dir/bin"
cp "$dist_binary" "$pkg_dir/bin/$dest_name"