stop looking for commands after first match

This commit is contained in:
Rob Pearce 2021-07-31 09:21:43 +10:00
parent aaa17b3759
commit 238d77f7e3
1 changed files with 1 additions and 0 deletions

1
t.sh
View File

@ -1214,6 +1214,7 @@ for x in $valid_modes; do
if [[ $1 =~ ^(${tomatch})$ ]]; then if [[ $1 =~ ^(${tomatch})$ ]]; then
mode=$x mode=$x
shift shift
break
fi fi
done done