mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-03-03 18:00:18 +00:00
10 lines
392 B
PowerShell
10 lines
392 B
PowerShell
#!/usr/bin/env pwsh
|
|
|
|
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"
|
|
|
|
echo "Installed to '$Env:USERPROFILE\.local\bin\sudo.cmd'"
|
|
echo ""
|