diff options
author | Robin Obůrka <r.oburka@gmail.com> | 2015-02-22 19:56:22 +0100 |
---|---|---|
committer | Robin Obůrka <r.oburka@gmail.com> | 2015-02-22 19:56:22 +0100 |
commit | 79004afdd302d14fdf1eb14e2d20f8fa1138abe1 (patch) | |
tree | 213e92ce3c0bd9c6b3c65cdeeeb9a563a2d0b2ac | |
parent | Add read auto detection to autodetect.sh (diff) | |
download | display_autoset-79004afdd302d14fdf1eb14e2d20f8fa1138abe1.tar.xz |
Fix regexp
-rwxr-xr-x | autodetect.sh | 4 |
1 files 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() { |