Update warp-go.sh

dependabot/github_actions/actions/checkout-3.1.0
fscarmen 3 years ago committed by GitHub
parent ab244fa247
commit abe3269302
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      warp-go.sh

@ -299,7 +299,7 @@ check_operating_system() {
[[ $(echo "$SYS" | tr 'A-Z' 'a-z') =~ ${REGEX[int]} ]] && SYSTEM="${RELEASE[int]}" && COMPANY="${COMPANY[int]}" && [ -n "$SYSTEM" ] && break
done
[ -z "$SYSTEM" ] && error "$(text 6)"
[ "$SYSTEM" = OpenWrt ] && [ $(uci show network.wan.proto | cut -d \' -f2) != 'static' ] && error "$(text 102)"
[ "$SYSTEM" = OpenWrt ] && [[ ! $(uci show network.wan.proto 2>/dev/null | cut -d \' -f2)$(uci show network.lan.proto 2>/dev/null | cut -d \' -f2) =~ 'static' ]] && error "$(text 102)"
# 先排除 EXCLUDE 里包括的特定系统,其他系统需要作大发行版本的比较
for ex in "${EXCLUDE[@]}"; do [[ ! $(echo "$SYS" | tr 'A-Z' 'a-z') =~ $ex ]]; done &&

Loading…
Cancel
Save