mirror of
https://github.com/divnix/digga.git
synced 2024-12-22 23:51:39 +03:00
fix: use gnu sed in shell tests for cross-platform compatibility
Darwin's use of BSD `sed` breaks here because BSD `sed` has a different argument signature.
This commit is contained in:
parent
bfecf143c0
commit
7597ce22bf
@ -52,13 +52,13 @@ let
|
||||
git rm -f flake.lock
|
||||
fi
|
||||
# ensure: restore input
|
||||
[ -z $diggaurl ] || sed -i "s|$tempdigga|$diggaurl|g" flake.nix
|
||||
[ -z $diggaurl ] || ${pkgs.gnused}/bin/sed -i "s|$tempdigga|$diggaurl|g" flake.nix
|
||||
}
|
||||
|
||||
digga_fixture() {
|
||||
# ensure: replace input
|
||||
diggaurl=$({ grep -o '"github:divnix/digga.*"' flake.nix || true; })
|
||||
[ -z $diggaurl ] || sed -i "s|$diggaurl|$tempdigga|g" flake.nix
|
||||
[ -z $diggaurl ] || ${pkgs.gnused}/bin/sed -i "s|$diggaurl|$tempdigga|g" flake.nix
|
||||
}
|
||||
|
||||
trap_err() {
|
||||
|
Loading…
Reference in New Issue
Block a user