mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-05-17 06:05:02 +00:00
style: formatting cleanup in api.func and core.func
This commit is contained in:
+4
-1
@@ -1688,7 +1688,10 @@ function get_lxc_ip() {
|
||||
local -a _ips6
|
||||
read -ra _ips6 <<<"$(hostname -I 2>/dev/null)"
|
||||
for ip in "${_ips6[@]}"; do
|
||||
[[ "$ip" == *:* ]] && { echo "$ip"; return 0; }
|
||||
[[ "$ip" == *:* ]] && {
|
||||
echo "$ip"
|
||||
return 0
|
||||
}
|
||||
done
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user