scripts: elevate now only requires a target for DOS mode (Linux mode opens WSL shell)
This commit is contained in:
parent
c097159c05
commit
63f8e69afc
1 changed files with 5 additions and 6 deletions
|
@ -13,13 +13,12 @@ if [[ "$1" == "-l" ]]; then
|
||||||
elif [[ "$1" == "-w" ]]; then
|
elif [[ "$1" == "-w" ]]; then
|
||||||
mode='dos'
|
mode='dos'
|
||||||
shift
|
shift
|
||||||
fi
|
# error if no target for DOS
|
||||||
|
|
||||||
# error if no target
|
|
||||||
if [ "$#" -eq 0 ]; then
|
if [ "$#" -eq 0 ]; then
|
||||||
echo "elevate: no target"
|
echo "elevate: DOS mode requires a target"
|
||||||
exit 3
|
exit 3
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# consume target based on mode
|
# consume target based on mode
|
||||||
if [[ "$mode" == "linux" ]]; then
|
if [[ "$mode" == "linux" ]]; then
|
||||||
|
|
Loading…
Reference in a new issue