mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-06 02:51:32 +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
|
i=$next
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$flag" =~ (-s|--scope) ]]; then
|
if [[ "$flag" =~ (-s|--scope) && -n "$value" ]]; then
|
||||||
local scope="($value)"
|
local scope="($value)"
|
||||||
i=$next
|
i=$next
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue