From 79004afdd302d14fdf1eb14e2d20f8fa1138abe1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20Ob=C5=AFrka?= Date: Sun, 22 Feb 2015 19:56:22 +0100 Subject: Fix regexp --- autodetect.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autodetect.sh b/autodetect.sh index 5ce4774..478fb0c 100755 --- a/autodetect.sh +++ b/autodetect.sh @@ -23,11 +23,11 @@ detect_status() { } detect_connected() { - sed -n -e 's/^\([[A-Za-z0-9-]*\)\s*connected.*$/\1/p' + sed -n -e 's/^\([A-Za-z0-9-]*\)\s*connected.*$/\1/p' } detect_disconnected() { - sed -n -e 's/^\([[A-Za-z0-9-]*\)\s*disconnected.*$/\1/p' + sed -n -e 's/^\([A-Za-z0-9-]*\)\s*disconnected.*$/\1/p' } rest_off() { -- cgit v1.2.3