From 958789772f9824b2c9fab81ce9af7f40c56f307a Mon Sep 17 00:00:00 2001 From: Antoine Gouby Date: Sun, 4 Feb 2024 23:49:28 +0100 Subject: [PATCH] test bad format --- .github/workflows/build.yml | 2 +- scripts/format.sh | 2 +- source/core/interface.hxx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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;