mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2026-09-30 00:34:42 +00:00
fix a typo
This commit is contained in:
@@ -92,7 +92,7 @@ function _p9k_parse_ip() {
|
|||||||
if [[ "${interface//${newline}/}" =~ "<([^>]*)>(.*)inet[ ]+([^ ]*)" ]]; then
|
if [[ "${interface//${newline}/}" =~ "<([^>]*)>(.*)inet[ ]+([^ ]*)" ]]; then
|
||||||
local ipFound="${match[3]}"
|
local ipFound="${match[3]}"
|
||||||
local -a interfaceStates=(${(s:,:)match[1]})
|
local -a interfaceStates=(${(s:,:)match[1]})
|
||||||
if (( "${interfaceStates[(I)UP]}" )); then
|
if (( ${interfaceStates[(I)UP]} )); then
|
||||||
_P9K_RETVAL=$ipFound
|
_P9K_RETVAL=$ipFound
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user