From dbb7f5bcd204a8b78b1e173f0b2e99ea2458d2e9 Mon Sep 17 00:00:00 2001
From: "nikolay.panko" <nikolay.panko@demlabs.net>
Date: Mon, 10 Mar 2025 13:51:26 +0700
Subject: [PATCH] [-] Removed extra slashes in paths

---
 conftool/main.cpp        | 6 +++---
 dist/share/default.setup | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/conftool/main.cpp b/conftool/main.cpp
index 6e56531bc..1d5c098c4 100644
--- a/conftool/main.cpp
+++ b/conftool/main.cpp
@@ -114,11 +114,11 @@ std::string getNodeConfigPath(std::string basepath){
     #endif
 
     #ifdef __linux__
-        return "/opt/cellframe-node/";
+        return "/opt/cellframe-node";
     #endif
     
     #ifdef __APPLE__ 
-        return  "/Library/Application Support/CellframeNode/";
+        return  "/Library/Application Support/CellframeNode";
     #endif
 
 
@@ -130,7 +130,7 @@ std::string getNodeConfigPath(std::string basepath){
         std::wstring path;
         GetStringRegKey(hKey, L"Common Documents", path, L"");
         std::string stdpath(path.begin(),path.end());
-        return (std::filesystem::path{stdpath}/"cellframe-node/").string();
+        return (std::filesystem::path{stdpath}/"cellframe-node").string();
     #endif
 }
 
diff --git a/dist/share/default.setup b/dist/share/default.setup
index dd929b4c1..546d47675 100644
--- a/dist/share/default.setup
+++ b/dist/share/default.setup
@@ -7,7 +7,7 @@
 # Predefined variables:
 #   ${HOST_OS} -> Linux | Windows | Macos
 #   ${HOSTNAME} -> hostname of a machine
-#   ${CONFIGS_PATH} -> /opt/cellframe-node/ for linux, 
+#   ${CONFIGS_PATH} -> /opt/cellframe-node for linux, 
 #                      Common Documents (usually C:\Users\Public\Documents\cellframe-node\) for Windows
 #
 # fromtemplate: create and populate config from "share/configs" templates  
-- 
GitLab