From 20f45928eaf72ed5413c0ac0c6e30bb771c03a5f Mon Sep 17 00:00:00 2001 From: Jouke Witteveen Date: Sun, 4 Mar 2012 12:22:18 +0100 Subject: Remove cat-subshells (cosmetic) The use of cat in a subshell is distractive. This makes the code more beautiful. --- src/rfkill | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rfkill') diff --git a/src/rfkill b/src/rfkill index 4fbc34d..12e1832 100644 --- a/src/rfkill +++ b/src/rfkill @@ -21,7 +21,7 @@ get_rf_path() { if [[ -n "$RFKILL_NAME" ]]; then for path in /sys/class/rfkill/*; do - if [[ "$(cat "$path/name")" == "$RFKILL_NAME" ]]; then + if [[ "$(< "$path/name")" == "$RFKILL_NAME" ]]; then echo "$path" return 0 fi -- cgit v1.2.3-24-g4f1b