Revert changes in for loop because param value is changed.

This commit is contained in:
Darko Poljak 2017-11-22 13:29:13 +01:00
parent 33a0e05e3d
commit 4bec22d726
7 changed files with 7 additions and 7 deletions

View file

@ -35,7 +35,7 @@ fi
echo "{"
printf ' "watches": [{\n'
printf ' "type": "%s"\n' "$watch_type"
for param in $__object/parameter/*; do
for param in $(ls "$__object/parameter/"); do
case "$param" in
state) continue ;;
filter-*)

View file

@ -29,7 +29,7 @@ state="$(cat "$__object/parameter/state")"
echo "{"
printf ' "watches": [{\n'
printf ' "type": "%s"\n' "$watch_type"
for param in $__object/parameter/*; do
for param in $(ls "$__object/parameter/"); do
case "$param" in
state) continue ;;
*)

View file

@ -29,7 +29,7 @@ state="$(cat "$__object/parameter/state")"
echo "{"
printf ' "watches": [{\n'
printf ' "type": "%s"\n' "$watch_type"
for param in $__object/parameter/*; do
for param in $(ls "$__object/parameter/"); do
case "$param" in
state) continue ;;
*)

View file

@ -29,7 +29,7 @@ state="$(cat "$__object/parameter/state")"
echo "{"
printf ' "watches": [{\n'
printf ' "type": "%s"\n' "$watch_type"
for param in $__object/parameter/*; do
for param in $(ls "$__object/parameter/"); do
case "$param" in
state) continue ;;
*)

View file

@ -29,7 +29,7 @@ state="$(cat "$__object/parameter/state")"
echo "{"
printf ' "watches": [{\n'
printf ' "type": "%s"\n' "$watch_type"
for param in $__object/parameter/*; do
for param in $(ls "$__object/parameter/"); do
case "$param" in
state) continue ;;
*)

View file

@ -29,7 +29,7 @@ state="$(cat "$__object/parameter/state")"
echo "{"
printf ' "watches": [{\n'
printf ' "type": "%s"\n' "$watch_type"
for param in $__object/parameter/*; do
for param in $(ls "$__object/parameter/"); do
case "$param" in
state) continue ;;
passingonly)

View file

@ -29,7 +29,7 @@ state="$(cat "$__object/parameter/state")"
echo "{"
printf ' "watches": [{\n'
printf ' "type": "%s"\n' "$watch_type"
for param in $__object/parameter/*; do
for param in $(ls "$__object/parameter/"); do
case "$param" in
state) continue ;;
*)