flake: run wrapped snapUtil with original name

This commit is contained in:
Michael Roitzsch
2020-11-24 18:43:24 +01:00
parent 239768785f
commit 5b7829bc1a

View File

@@ -70,7 +70,7 @@
cat > $out/bin/snapUtil <<- EOF cat > $out/bin/snapUtil <<- EOF
#!/bin/sh #!/bin/sh
if csrutil status | grep -Fq disabled && sysctl kern.bootargs | grep -Fq amfi_get_out_of_my_way ; then 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 else
echo 'snapUtil requires SIP and AMFI to be disabled:' echo 'snapUtil requires SIP and AMFI to be disabled:'
echo ' boot recovery system' echo ' boot recovery system'