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 exit 2
fi fi
# consume remaining arguments
arglist='' arglist=''
if [ "$#" -ne 0 ]; then if [ "$#" -ne 0 ]; then
arglist="-ArgumentList '$@'" arglist="-ArgumentList '$@'"
fi fi
# execute
pwsh -C "Start-Process -Verb runas $target $arglist" pwsh -C "Start-Process -Verb runas $target $arglist"