Prevent sensor names from being splitted when they contain spaces

This commit is contained in:
Wendel Scardua 2018-05-14 14:48:59 -03:00
parent c03b659042
commit d2672c1310

View File

@ -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