mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-11 08:00:06 +00:00
Fix regex
This commit is contained in:
parent
1ab6a32c4b
commit
fef639eb48
1 changed files with 1 additions and 1 deletions
|
@ -405,7 +405,7 @@ function p9k::parseIp() {
|
|||
continue
|
||||
fi
|
||||
# Check if interface is UP.
|
||||
if [[ "${interface/${newline}/}" =~ "<([^>]*)>(.*?)inet[ ]+([^ ]*)" ]]; then
|
||||
if [[ "${interface/${newline}/}" =~ "<([^>]*)>(.*)inet[ ]+([^ ]*)" ]]; then
|
||||
local ipFound="${match[3]}"
|
||||
local -a interfaceStates=(${(s:,:)match[1]})
|
||||
if [[ "${interfaceStates[(r)UP]}" == "UP" ]]; then
|
||||
|
|
Loading…
Reference in a new issue