From c047c8797d80cb71a2c44d279cdb6b17d5ace882 Mon Sep 17 00:00:00 2001 From: samuela <skainsworth@gmail.com> Date: Wed, 8 Jan 2020 19:21:41 +0000 Subject: [PATCH] Fix sed call to work on macOS. --- recipes/dash/recipe.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/recipes/dash/recipe.sh b/recipes/dash/recipe.sh index 725a93e76..a0974a6ba 100644 --- a/recipes/dash/recipe.sh +++ b/recipes/dash/recipe.sh @@ -19,7 +19,9 @@ function recipe_build { --prefix=/ \ --enable-static \ cross_compiling=yes - sed -i 's|#define HAVE_GETRLIMIT 1|/* #undef HAVE_GETRLIMIT */|g' config.h + + # See https://stackoverflow.com/questions/4247068/sed-command-with-i-option-failing-on-mac-but-works-on-linux. + sed -i'' -e 's|#define HAVE_GETRLIMIT 1|/* #undef HAVE_GETRLIMIT */|g' config.h make -j"$(nproc)" skip=1 } -- GitLab