mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-03-13 21:33:22 +01:00
fix: do not consider "-s" if it has no value
This commit is contained in:
parent
5b663d616a
commit
e1f45d5fa7
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ build_message () {
|
|||
i=$next
|
||||
fi
|
||||
|
||||
if [[ "$flag" =~ (-s|--scope) ]]; then
|
||||
if [[ "$flag" =~ (-s|--scope) && -n "$value" ]]; then
|
||||
local scope="($value)"
|
||||
i=$next
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue