scripts: 'terminal.sh' elevate flag now consistently works

This commit is contained in:
Valerie Wolfe 2024-08-19 09:14:06 -04:00
parent eb675928a7
commit 4555833c3c

View file

@ -1,11 +1,10 @@
#!/usr/bin/bash #!/usr/bin/bash
wrapper='dos'
if [[ "$1" == "-e" ]]; then if [[ "$1" == "-e" ]]; then
wrapper='elevate -w' elevate -l terminal
fi fi
cd '/mnt/c/Program Files/WindowsApps/' cd '/mnt/c/Program Files/WindowsApps/'
target=`find Microsoft.WindowsTerminal* -name 'WindowsTerminal.exe'` target=`find Microsoft.WindowsTerminal* -name 'WindowsTerminal.exe'`
$wrapper "$target" dos "$target"