Fix sed command line arguments
Some checks failed
buildbot/travis_bionic Build done.
buildbot/multibuild_parent Build done.
buildbot/ipxe_x86_build_and_release Build done.

This commit is contained in:
Peter Šurda 2022-09-20 18:59:59 +08:00
parent 7bba9f8d84
commit f552011aed
Signed by: PeterSurda
GPG Key ID: 3E47497CF67ABB95

View File

@ -38,10 +38,10 @@ function sed_enabled_ipxe_features() {
NTP_CMD \ NTP_CMD \
CERT_CMD CERT_CMD
do do
sed -ri \ sed -i -r \
"s/^\\/+#define[[:space:]]+$OPTION[[:space:]]/#define $OPTION /g" \ "s/^\\/+#define[[:space:]]+$OPTION[[:space:]]/#define $OPTION /g" \
"${ipxe_src_dir}/src/config/general.h" "${ipxe_src_dir}/src/config/general.h"
sed -ri sed -i -r \
"s/^#undef[[:space:]]+$OPTION[[:space:]]/#define $OPTION /g" \ "s/^#undef[[:space:]]+$OPTION[[:space:]]/#define $OPTION /g" \
"${ipxe_src_dir}/src/config/general.h" "${ipxe_src_dir}/src/config/general.h"
done done