scripts: improved code clarity in elevate.sh
This commit is contained in:
parent
43edc934ec
commit
40e33e7023
1 changed files with 2 additions and 0 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in a new issue