Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lorents17 committed May 28, 2015
1 parent 1df8e74 commit 4a4d4a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions iCatalyst.bat
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@ if exist "%filelist%" (
if "%jpeg%" neq "0" for /f "tokens=*" %%a in ('findstr /i /e ".jpeg" "%filelist%" ^| find /i /c ".jpeg" 2^>nul') do set /a "TotalNumJPG+=%%a"
if "%gif%" neq "0" for /f "tokens=*" %%a in ('findstr /i /e ".gif" "%filelist%" ^| find /i /c ".gif" 2^>nul') do set /a "TotalNumGIF+=%%a"
)
if %TotalNumPNG% gtr 0 (call:png) else set "png=0"
if %TotalNumJPG% gtr 0 (call:jpeg) else set "jpeg=0"
if %TotalNumGIF% gtr 0 (call:gif) else set "gif=0"
if %TotalNumPNG% gtr 0 (if not defined png call:png) else set "png=0"
if %TotalNumJPG% gtr 0 (if not defined jpeg call:jpeg) else set "jpeg=0"
if %TotalNumGIF% gtr 0 (if not defined gif call:gif) else set "gif=0"
if exist "%filelisterr%" (
if defined png for /f "tokens=3 delims=:" %%a in ('findstr /i /e ".png" "%filelisterr%" ^| find /i /c ".png" 2^>nul') do set /a "TotalNumErrPNG+=%%a"
if defined jpeg for /f "tokens=3 delims=:" %%a in ('findstr /i /e ".jpg" "%filelisterr%" ^| find /i /c ".jpg" 2^>nul') do set /a "TotalNumErrJPG+=%%a"
Expand Down

0 comments on commit 4a4d4a3

Please sign in to comment.