From ec1baa95c474a5bc9fd84433de3ef2dcd6f0b1c7 Mon Sep 17 00:00:00 2001 From: joaoviictorti Date: Wed, 7 May 2025 13:19:44 -0300 Subject: [PATCH] Update Justfile --- Justfile | 3 +++ 1 file changed, 3 insertions(+) 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