Skip to content

Commit 8b88f51

Browse files
bors[bot]Chris Montgomery
and
Chris Montgomery
authored
Merge #441
441: fix: use gnu sed in shell tests for cross-platform compatibility r=montchr a=montchr Darwin's use of BSD `sed` breaks here because BSD `sed` has a different argument signature. Spun off from #438 as suggested in #438 (comment) Co-authored-by: Chris Montgomery <chris@alley.co>
2 parents bfecf14 + 7597ce2 commit 8b88f51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shell.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ let
5252
git rm -f flake.lock
5353
fi
5454
# ensure: restore input
55-
[ -z $diggaurl ] || sed -i "s|$tempdigga|$diggaurl|g" flake.nix
55+
[ -z $diggaurl ] || ${pkgs.gnused}/bin/sed -i "s|$tempdigga|$diggaurl|g" flake.nix
5656
}
5757
5858
digga_fixture() {
5959
# ensure: replace input
6060
diggaurl=$({ grep -o '"github:divnix/digga.*"' flake.nix || true; })
61-
[ -z $diggaurl ] || sed -i "s|$diggaurl|$tempdigga|g" flake.nix
61+
[ -z $diggaurl ] || ${pkgs.gnused}/bin/sed -i "s|$diggaurl|$tempdigga|g" flake.nix
6262
}
6363
6464
trap_err() {

0 commit comments

Comments
 (0)