There was an error while loading. Please reload this page.
1 parent 57b596c commit 43b0ebdCopy full SHA for 43b0ebd
template/default.nix
@@ -114,6 +114,10 @@ rec {
114
# (see https://github.com/pre-commit/pre-commit-hooks?tab=readme-ov-file#trailing-whitespace).
115
# So, remove the trailing newline already here to avoid that an
116
# unnecessary change is shown in Git.
117
- sed -i '$d' Cargo.nix
+ if [[ "$(uname)" == "Darwin" ]]; then
118
+ sed -i \"\" '$d' Cargo.nix
119
+ else
120
+ sed -i '$d' Cargo.nix
121
+ fi
122
'';
123
}
0 commit comments