aboutsummaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorDominik Ritter <dritter03@googlemail.com>2019-02-22 20:16:15 +0300
committerDominik Ritter <dritter03@googlemail.com>2019-02-22 20:16:15 +0300
commitfef639eb488fb99007526cfa2d1d09c901fca3cc (patch)
tree8a23545bb3a6b1d86eccba158491e9cf4a6e142b /functions
parent1ab6a32c4b4871e4161cd75e485c203d0c2111e7 (diff)
Fix regex
Diffstat (limited to 'functions')
-rwxr-xr-xfunctions/utilities.zsh2
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