mirror of
https://github.com/icewind1991/nvidia-patch-nixos.git
synced 2026-06-03 19:14:06 +02:00
bypass root check in patch scripts
This commit is contained in:
parent
f9a0039c99
commit
2cb8f30983
1 changed files with 6 additions and 1 deletions
|
|
@ -8,6 +8,11 @@ writeShellApplication {
|
|||
runtimeInputs = [jq];
|
||||
|
||||
text = ''
|
||||
bash "$1" -j
|
||||
tmpscript=$(mktemp)
|
||||
trap 'rm -f "$tmpscript"' EXIT
|
||||
cp "$1" "$tmpscript"
|
||||
# bypass "root check"
|
||||
sed -i 's/ne 0/eq 0/' "$tmpscript"
|
||||
bash "$tmpscript" -j
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue