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
|
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"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue