From b18efe3257bae64b0ce3769c131df66117857ed7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Pierret=20=28fepitre=29?= Date: Thu, 16 May 2019 18:11:50 +0200 Subject: [PATCH] Make ShellCheck happy --- network/network-manager-prepare-conf-dir | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/network/network-manager-prepare-conf-dir b/network/network-manager-prepare-conf-dir index e76ce01..e9e6231 100755 --- a/network/network-manager-prepare-conf-dir +++ b/network/network-manager-prepare-conf-dir @@ -24,10 +24,11 @@ sed -r -i -e "s/^#?plugins=.*/plugins=keyfile/" /etc/NetworkManager/NetworkManag # starting NetworkManager, otherwise it will try default DHCP configuration # first and only after a timeout fallback to static one - introducing delay in # network connectivity -export INTERFACE="$(get_qubes_managed_iface)" +INTERFACE="$(get_qubes_managed_iface)" +export INTERFACE if qubesdb-read /qubes-ip >/dev/null 2>/dev/null && - [ -e /sys/class/net/$INTERFACE ] && - [ ! -r /etc/NetworkManager/system-connections/qubes-uplink-$INTERFACE ]; then + [ -e "/sys/class/net/$INTERFACE" ] && + [ ! -r "/etc/NetworkManager/system-connections/qubes-uplink-$INTERFACE" ]; then /usr/lib/qubes/setup-ip fi