mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-08-23 22:16:48 +00:00
ref!: replace pathman with PowerShell [Environment]::SetEnvironmentVariable
This commit is contained in:
@@ -5,8 +5,5 @@ echo "Installing sudo.cmd..."
|
||||
# Couldn't figure out how to get this to work with "here strings", so forgive the ugly, but at least it works
|
||||
Set-Content -Path .local\bin\sudo.cmd -Value "@echo off`r`npowershell -Command ""Start-Process cmd -Verb RunAs -ArgumentList '/c cd /d %CD% && %*'""`r`n@echo on"
|
||||
|
||||
# Add to path
|
||||
& "$Env:USERPROFILE\.local\bin\pathman.exe" add ~/.local/bin
|
||||
|
||||
echo "Installed to '$Env:USERPROFILE\.local\bin\sudo.cmd'"
|
||||
echo ""
|
||||
|
||||
Reference in New Issue
Block a user