fix: modify script to accomodate ip address show without brd

This commit is contained in:
rsatrio
2025-02-25 18:39:22 +07:00
parent bdea4e2932
commit 873f515727
6 changed files with 6 additions and 6 deletions

View File

@ -18,7 +18,7 @@ PUSH_IMAGES=false
NO_CACHE=false
PARALLELBUILDS=2
UPLOAD_BANDWIDTH=40mbit # Set this to max 90% of available upload bandwidth
INTERFACE=$(/sbin/ip address show | /usr/bin/awk '/inet.*brd/{ print $NF; exit }')
INTERFACE=$(/sbin/ip address show | /usr/bin/awk '/inet.*(brd|global)/{ print $NF; exit }')
# Help message
usage() {