OSDN Git Service

Plugins/Commands: Fix an issue where file download would fail if the% APPDATA%\WinMer...
authorTakashi Sawanaka <sdottaka@users.sourceforge.net>
Sun, 25 Jul 2021 06:35:29 +0000 (15:35 +0900)
committerTakashi Sawanaka <sdottaka@users.sourceforge.net>
Sun, 25 Jul 2021 06:35:29 +0000 (15:35 +0900)
Plugins/Commands/Apache-Tika/tika.bat
Plugins/Commands/q/q.bat
Plugins/Commands/yq/yq.bat

index 4c16d07..3aa51f1 100644 (file)
@@ -16,6 +16,7 @@ cd "%APPDATA%\WinMerge"
 if not exist %TIKA_PATH% (
   cd "%~dp0..\.."
   if not exist %TIKA_PATH% (
+    mkdir "%APPDATA%\WinMerge" 2> NUL
     cd "%APPDATA%\WinMerge"
     for %%i in (%TIKA_PATH%) do mkdir %%~pi 2> NUL
     powershell "if ((New-Object -com WScript.Shell).Popup(%MESSAGE%,0,%TITLE%,1) -ne 1) { throw }" > NUL
index ca90850..5c3a80e 100644 (file)
@@ -18,6 +18,7 @@ cd "%APPDATA%\WinMerge"
 if not exist %Q_PATH% (
   cd "%~dp0..\.."
   if not exist %Q_PATH% (
+    mkdir "%APPDATA%\WinMerge" 2> NUL
     cd "%APPDATA%\WinMerge"
     for %%i in (%Q_PATH%) do mkdir %%~pi 2> NUL
     powershell "if ((New-Object -com WScript.Shell).Popup(%MESSAGE%,0,%TITLE%,1) -ne 1) { throw }" > NUL
index 89c5b6b..481fbda 100644 (file)
@@ -9,6 +9,7 @@ cd "%APPDATA%\WinMerge"
 if not exist %YQ_PATH% (
   cd "%~dp0..\.."
   if not exist %YQ_PATH% (
+    mkdir "%APPDATA%\WinMerge" 2> NUL
     cd "%APPDATA%\WinMerge"
     for %%i in (%YQ_PATH%) do mkdir %%~pi 2> NUL
     powershell "if ((New-Object -com WScript.Shell).Popup(%MESSAGE%,0,%TITLE%,1) -ne 1) { throw }" > NUL