mirror of
https://github.com/YunoHost-Apps/adguardhome_ynh.git
synced 2024-09-03 18:06:23 +02:00
shellcheck: ignore SC2005
This commit is contained in:
parent
64109eec82
commit
b74820b443
1 changed files with 2 additions and 0 deletions
|
@ -13,7 +13,9 @@ configure_network_interface_dnsmasq(){
|
|||
|
||||
# get the network interface name for IPv4 and IPv6
|
||||
# note: echo the IP route command to prevent a crash if the server doesn't have any IPv4/6
|
||||
# shellcheck disable=SC2005
|
||||
ipv4_interface=$(echo "$(ip -4 route get 1.2.3.4 2> /dev/null)" | head -n1 | grep -oP '(?<=dev )\w+' || true)
|
||||
# shellcheck disable=SC2005
|
||||
ipv6_interface=$(echo "$(ip -6 route get ::1.2.3.4 2> /dev/null)" | head -n1 | grep -oP '(?<=dev )\w+' || true)
|
||||
|
||||
if [ -z "$ipv4_interface" ] && [ -z "$ipv6_interface" ]; then
|
||||
|
|
Loading…
Add table
Reference in a new issue