Skip to content

Commit 6d97ce9

Browse files
committed
fix:修复笔误
1 parent a432ac8 commit 6d97ce9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/dockerinstall.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ if [ ! -f /usr/local/bin/docker_ipv6_prefixlen ] || [ ! -s /usr/local/bin/docker
731731
real_prefixlen=$(echo "$rdisc6_output" | grep -i "Prefix" | grep -oP '[::]\s*[0-9a-fA-F:]+/\K\d+' | head -n 1)
732732
else
733733
# BusyBox 兼容方法
734-
real_prefixlen=$(echo "$rdisc6_output" | grep -i "Prefix" | sed -n 's/.*[[::]][[:space:]]*[0-9a-fA-F:]*\/\([0-9]*\).*/\1/p' | head -n 1)
734+
real_prefixlen=$(echo "$rdisc6_output" | grep -i "Prefix" | sed -n 's/.*[::][[:space:]]*[0-9a-fA-F:]*\/\([0-9]*\).*/\1/p' | head -n 1)
735735
fi
736736
if [ -n "$real_prefixlen" ] && [ "$real_prefixlen" -gt 0 ] && [ "$real_prefixlen" -le 128 ]; then
737737
_green "Found real IPv6 prefix length from router advertisement: /$real_prefixlen"

0 commit comments

Comments
 (0)