scripts: improved code clarity in elevate.sh

This commit is contained in:
Valerie Wolfe 2024-06-13 10:39:43 -04:00
parent 43edc934ec
commit 40e33e7023

View file

@ -32,10 +32,12 @@ else
exit 2
fi
# consume remaining arguments
arglist=''
if [ "$#" -ne 0 ]; then
arglist="-ArgumentList '$@'"
fi
# execute
pwsh -C "Start-Process -Verb runas $target $arglist"