diff options
author | Dominik Ritter <dritter03@googlemail.com> | 2019-02-22 20:16:15 +0300 |
---|---|---|
committer | Dominik Ritter <dritter03@googlemail.com> | 2019-02-22 20:16:15 +0300 |
commit | fef639eb488fb99007526cfa2d1d09c901fca3cc (patch) | |
tree | 8a23545bb3a6b1d86eccba158491e9cf4a6e142b /functions/utilities.zsh | |
parent | 1ab6a32c4b4871e4161cd75e485c203d0c2111e7 (diff) |
Fix regex
Diffstat (limited to 'functions/utilities.zsh')
-rwxr-xr-x | functions/utilities.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/functions/utilities.zsh b/functions/utilities.zsh index 069fb1a8..2e6d98dd 100755 --- a/functions/utilities.zsh +++ b/functions/utilities.zsh @@ -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 |