diff --git a/foreign_cc/private/framework/toolchains/freebsd_commands.bzl b/foreign_cc/private/framework/toolchains/freebsd_commands.bzl index 99cc3e58..44d15f9f 100644 --- a/foreign_cc/private/framework/toolchains/freebsd_commands.bzl +++ b/foreign_cc/private/framework/toolchains/freebsd_commands.bzl @@ -83,7 +83,7 @@ if [ -d "$1" ]; then for file in ${files[@]+"${files[@]}"}; do local backup=$(mktemp) touch -r "${file}" "${backup}" - sed -i '' -e 's@'"$2"'@'"$3"'@g' "${file}" + /usr/bin/sed -i '' -e 's@'"$2"'@'"$3"'@g' "${file}" if [[ "$?" -ne "0" ]]; then exit 1 fi diff --git a/foreign_cc/private/framework/toolchains/macos_commands.bzl b/foreign_cc/private/framework/toolchains/macos_commands.bzl index 2a14b48f..0bf7aa8d 100644 --- a/foreign_cc/private/framework/toolchains/macos_commands.bzl +++ b/foreign_cc/private/framework/toolchains/macos_commands.bzl @@ -74,7 +74,7 @@ if [ -d "$1" ]; then for file in ${files[@]+"${files[@]}"}; do local backup=$(mktemp) touch -r "${file}" "${backup}" - sed -i '' -e 's@'"$2"'@'"$3"'@g' "${file}" + /usr/bin/sed -i '' -e 's@'"$2"'@'"$3"'@g' "${file}" if [[ "$?" -ne "0" ]]; then exit 1 fi