diff --git a/Justfile b/Justfile index 7d0438a..9425072 100644 --- a/Justfile +++ b/Justfile @@ -27,6 +27,9 @@ driver: # Build the driver with `mapper` feature driver-mapper: + @if (-not ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { \ + throw "[-] You must run this as Administrator"; \ + } \ cd {{driver}}; cargo make default --release --features mapper # Clean everything in the workspace