Skip to content

Build your personal knowledge base with Trilium Notes

Strip trailing backslash

PChemGuydf9a413ef836
diff --git a/bin/tpl/trilium-portable.bat b/bin/tpl/trilium-portable.bat
index ab07e2cd9c..b6eeb853f5 100644
--- a/bin/tpl/trilium-portable.bat
+++ b/bin/tpl/trilium-portable.bat
@@ -15,6 +15,7 @@ chcp 65001
:: Get Current Trilium executable directory and compute data directory
SET DIR=%~dp0
+SET DIR=%DIR:~0,-1%
SET TRILIUM_DATA_DIR=%DIR%\trilium-data
cd "%DIR%"
start trilium.exe