From 32cde1eba10acfcb6040cc933c73821016dbe100 Mon Sep 17 00:00:00 2001 From: talon Date: Sat, 17 Jun 2023 18:37:01 -0600 Subject: [PATCH] like this actually --- README.md | 8 ++++---- profile.ps1 | 8 ++++---- update_and_clean.ps1 | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 749e95b..709ac34 100644 --- a/README.md +++ b/README.md @@ -41,10 +41,10 @@ function prompt { $prompt = "> " If ((New-Object Security.Principal.WindowsPrincipal $( [Security.Principal.WindowsIdentity]::GetCurrent() - ).IsInRole( - [Security.Principal.WindowsBuiltinRole]::Administrator - ) - )) { + )).IsInRole( + [Security.Principal.WindowsBuiltinRole]::Administrator + ) + ) { $prompt = "Admin$prompt" } $prompt diff --git a/profile.ps1 b/profile.ps1 index 011e6d5..ec334d4 100644 --- a/profile.ps1 +++ b/profile.ps1 @@ -5,10 +5,10 @@ function prompt { $prompt = "> " If ((New-Object Security.Principal.WindowsPrincipal $( [Security.Principal.WindowsIdentity]::GetCurrent() - ).IsInRole( - [Security.Principal.WindowsBuiltinRole]::Administrator - ) - )) { + )).IsInRole( + [Security.Principal.WindowsBuiltinRole]::Administrator + ) + ) { $prompt = "Admin$prompt" } $prompt diff --git a/update_and_clean.ps1 b/update_and_clean.ps1 index 798df9b..059bcc6 100644 --- a/update_and_clean.ps1 +++ b/update_and_clean.ps1 @@ -2,10 +2,10 @@ param([switch]$elevated) # If not in an Administrator environment If (!(New-Object Security.Principal.WindowsPrincipal $( [Security.Principal.WindowsIdentity]::GetCurrent() - ).IsInRole( - [Security.Principal.WindowsBuiltinRole]::Administrator - ) - )) { + )).IsInRole( + [Security.Principal.WindowsBuiltinRole]::Administrator + ) +) { # and elevating hasn't already been tried if (!$elevated) { # attmempt to become Administrator by re-invoking this script