Skip to content

Commit

Permalink
explicit character removal
Browse files Browse the repository at this point in the history
  • Loading branch information
noursaidi committed Jun 9, 2022
1 parent 411a242 commit 5e65ea5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bin/pubber
Original file line number Diff line number Diff line change
Expand Up @@ -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`

Expand Down

0 comments on commit 5e65ea5

Please sign in to comment.