diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bc3b374..e3a0dfb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,7 +13,7 @@ jobs: - name: Format run: | - ./scripts/format.sh + ./scripts/format.sh --check build: runs-on: ubuntu-latest diff --git a/scripts/format.sh b/scripts/format.sh index 98519aa..2e6f328 100755 --- a/scripts/format.sh +++ b/scripts/format.sh @@ -35,7 +35,7 @@ while [[ $# -gt 0 ]]; do esac done -if [ "$FORMAT_OPTIONS" == false ] && [ "$CHECK_OPTIONS" == false ]; then +if [ "$FORMAT_OPTION" == false ] && [ "$CHECK_OPTION" == false ]; then echo "No options provided. Please provide either --format or --check." exit 1 fi diff --git a/source/core/interface.hxx b/source/core/interface.hxx index 3ba6c69..022963b 100644 --- a/source/core/interface.hxx +++ b/source/core/interface.hxx @@ -35,7 +35,7 @@ struct itf_impl { int send_message(const nlohmann::json &data); itf_info info; - std::string topic_base; + std::string topic_base; std::string topic_cmd; mqtt_service *mqtt; std::unordered_map attributes;