From 5b7829bc1a0b8f514c7ff9ab343c77b058961013 Mon Sep 17 00:00:00 2001 From: Michael Roitzsch Date: Tue, 24 Nov 2020 18:43:24 +0100 Subject: [PATCH] flake: run wrapped snapUtil with original name --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index d88ac1a..1c0221d 100644 --- a/flake.nix +++ b/flake.nix @@ -70,7 +70,7 @@ cat > $out/bin/snapUtil <<- EOF #!/bin/sh if csrutil status | grep -Fq disabled && sysctl kern.bootargs | grep -Fq amfi_get_out_of_my_way ; then - exec $out/bin/.snapUtil-wrapped "\$@" + exec -a snapUtil $out/bin/.snapUtil-wrapped "\$@" else echo 'snapUtil requires SIP and AMFI to be disabled:' echo '• boot recovery system'