From d2672c131088b367188529702f3c140fe08fd334 Mon Sep 17 00:00:00 2001 From: Wendel Scardua Date: Mon, 14 May 2018 14:48:59 -0300 Subject: [PATCH] Prevent sensor names from being splitted when they contain spaces --- scripts/termux-sensor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/termux-sensor b/scripts/termux-sensor index 1c8bcb5..8257657 100755 --- a/scripts/termux-sensor +++ b/scripts/termux-sensor @@ -81,7 +81,7 @@ do a) set_flag $ALL_SENSORS_FLAG; PARAMS="-a sensors $PARAMS --ez all true" ;; c) set_flag $CLEANUP_FLAG; PARAMS="-a cleanup" ;; l) set_flag $LIST_FLAG; PARAMS="-a list" ;; - s) set_flag $SENSOR_FLAG; get_sensors $OPTARG; PARAMS="-a sensors --es sensors $OPTARG" ;; + s) set_flag $SENSOR_FLAG; get_sensors "$OPTARG"; PARAMS="-a sensors --es sensors $OPTARG" ;; d) set_flag $DELAY_FLAG; get_delay $OPTARG; PARAMS="$PARAMS --ei delay $OPTARG" ;; ?) echo "$SCRIPTNAME: illegal option -$OPTARG"; exit 1; esac