diff --git a/bin/pubber b/bin/pubber index fe60426ab2..39eaf74437 100755 --- a/bin/pubber +++ b/bin/pubber @@ -37,8 +37,7 @@ else fi printf -v options_json '%s"%s":%s,' "$options_json" "$k" "$v" done - # Remove trailing comma and embed options in an object - options_json="{${options_json%?}}" + options_json="{${options_json%,}}" cloud_region=`jq -r .cloud_region $site_path/cloud_iot_config.json`