mirror of
https://github.com/zadam/trilium.git
synced 2024-11-14 11:45:20 +08:00
780b520506
* Add powershell equivalents to existing windows scripts Each .bat will try to invoke its .ps1 version if powershell is available, or else will fallback on the behavior previous to this commit. Should help fix bugs with accents and non-ASCII characters (issue #2327). * Add powershell equivalents to existing windows scripts Each .bat will try to invoke its .ps1 version if powershell is available, or else will fallback on the behavior previous to this commit. Should help fix bugs with accents and non-ASCII characters (issue #2327). Co-authored-by: zadam <zadam.apps@gmail.com>
5 lines
No EOL
155 B
Batchfile
5 lines
No EOL
155 B
Batchfile
SET DIR=%~dp0
|
|
SET TRILIUM_SAFE_MODE=1
|
|
cd %DIR%
|
|
WHERE powershell.exe
|
|
IF %ERRORLEVEL% NEQ 0 (start trilium.exe) ELSE (powershell.exe ./trilium-safe-mode.ps1) |