scripts: elevate now only requires a target for DOS mode (Linux mode opens WSL shell)

This commit is contained in:
Valerie Wolfe 2024-06-17 08:58:42 -04:00
parent c097159c05
commit 63f8e69afc

View file

@ -13,12 +13,11 @@ 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
if [ "$#" -eq 0 ]; then
# error if no target echo "elevate: DOS mode requires a target"
if [ "$#" -eq 0 ]; then exit 3
echo "elevate: no target" fi
exit 3
fi fi
# consume target based on mode # consume target based on mode