Skip to content

Commit

Permalink
Use perl instead of sed to fix build error in macos. (kubernetes#5700)
Browse files Browse the repository at this point in the history
  • Loading branch information
theSinner authored Dec 3, 2020
1 parent 8b89a1c commit 16c2735
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aio/scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function build::frontend {
filename=("$(find "${localeDir}" -name 'main.*.js' -exec basename {} \;)")

mv "${localeDir}/${filename}" "${localeDir}/${language}.${filename}"
sed -i "s/${filename}/${language}.${filename}/" "${localeDir}/index.html"
perl -i -pe"s/${filename}/${language}.${filename}/" "${localeDir}/index.html"
done
}

Expand Down

0 comments on commit 16c2735

Please sign in to comment.