forked from finn/tinyboard
fix netplan file fallback assignment bug in setup-network.sh
This commit is contained in:
2
setup-network.sh
Normal file → Executable file
2
setup-network.sh
Normal file → Executable 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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user