diff options
author | Dominik Ritter <dritter03@googlemail.com> | 2019-02-04 17:40:31 +0300 |
---|---|---|
committer | Dominik Ritter <dritter03@googlemail.com> | 2019-02-04 17:40:31 +0300 |
commit | a00cb84da48b1f53a67c0ed43c90e6b4f720262f (patch) | |
tree | 394f5834d4f8254b1c6932d9b1d1cf842b6b2465 /functions | |
parent | 06151eeba90ce7ce54b4222d3ef359b4edb10edf (diff) |
Fix regular expression and test
Diffstat (limited to 'functions')
-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 9a72eab8..5532eef6 100755 --- a/functions/utilities.zsh +++ b/functions/utilities.zsh @@ -402,7 +402,7 @@ function p9k::parseIp() { for interfaceName in $relevantInterfaces; do local interface="$(${ROOT_PREFIX}/sbin/ifconfig $interfaceName 2>/dev/null)" # Check if interface is UP. - if [[ "${interface/${newline}/}" =~ "<UP(,)?[^>]*>(.*?)inet[ ]*([^ ]*)" ]]; then + if [[ "${interface/${newline}/}" =~ "<UP(,)?[^>]*>(.*)inet[ ]*([^ ]*)" ]]; then echo "${match[3]}" return 0 fi |