98 |
|
|
99 |
run_push_config() |
run_push_config() |
100 |
{ |
{ |
101 |
|
local serial="$1" |
102 |
local config |
local config |
103 |
|
|
104 |
|
if [[ -z ${serial} ]] |
105 |
|
then |
106 |
|
eecho "missing serial" |
107 |
|
return 1 |
108 |
|
fi |
109 |
|
|
110 |
for config in $(print_push_config) |
for config in $(print_push_config) |
111 |
do |
do |
112 |
if [[ -n $(typeset -f push_config_${config}) ]] |
if [[ -n $(typeset -f push_config_${config}) ]] |
113 |
then |
then |
114 |
push_config_"${config}" |
push_config_"${config}" "${serial}" |
115 |
else |
else |
116 |
decho "no function 'push_config_${config}' for '${config}' found." |
decho "no function 'push_config_${config}' for '${config}' found." |
117 |
fi |
fi |