summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/connections/wireless2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/connections/wireless b/src/connections/wireless
index 638b51b..5c9091a 100644
--- a/src/connections/wireless
+++ b/src/connections/wireless
@@ -69,7 +69,7 @@ wireless_up() {
enable_rf || return 1
# Check if interface exists
- is_interface $INTERFACE || report_fail "interface $INTERFACE does not exist"
+ is_interface "$INTERFACE" || { report_fail "interface $INTERFACE does not exist"; return 1; }
# Kill any lingering wpa_supplicants.
report_debug wireless_up stop_wpa "$INTERFACE"