scripts: 'terminal.sh' elevate flag now consistently works
This commit is contained in:
parent
eb675928a7
commit
4555833c3c
1 changed files with 2 additions and 3 deletions
|
@ -1,11 +1,10 @@
|
|||
#!/usr/bin/bash
|
||||
|
||||
wrapper='dos'
|
||||
if [[ "$1" == "-e" ]]; then
|
||||
wrapper='elevate -w'
|
||||
elevate -l terminal
|
||||
fi
|
||||
|
||||
cd '/mnt/c/Program Files/WindowsApps/'
|
||||
target=`find Microsoft.WindowsTerminal* -name 'WindowsTerminal.exe'`
|
||||
$wrapper "$target"
|
||||
dos "$target"
|
||||
|
||||
|
|
Loading…
Reference in a new issue