1
0
forked from finn/tinyboard

fix netplan file fallback assignment bug in setup-network.sh

This commit is contained in:
Justin Oros
2026-04-16 09:57:29 -07:00
parent 96c737709c
commit 288aa698d0
2 changed files with 1 additions and 1 deletions

2
setup-network.sh Normal file → Executable file
View File

@@ -73,7 +73,7 @@ echo ""
NETPLAN_FILE=$(ls /etc/netplan/*.yaml 2>/dev/null | head -1)
read -rp "Netplan file to update [${NETPLAN_FILE}]: " INPUT_FILE
NETPLAN_FILE="${INPUT_FILE:-$INPUT_FILE}"
NETPLAN_FILE="${INPUT_FILE:-$NETPLAN_FILE}"
NETPLAN_FILE="${NETPLAN_FILE:-$(ls /etc/netplan/*.yaml 2>/dev/null | head -1)}"
[ -n "$NETPLAN_FILE" ] || die "No netplan file specified"