Skip to content

Commit

Permalink
Fix bogus function end
Browse files Browse the repository at this point in the history
  • Loading branch information
deajan authored Apr 18, 2017
1 parent 42860bf commit 0061fbe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions erroraction.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
:: Config can be changed in erroraction_config.cmd

:: CHANGELOG:
:: 17 Avr 2017:
:: - Fixed bogus preflight function end
:: 13 Avr 2017:
:: - Fixed preflight checks because of ambiguous batch syntax
:: 12 Avr 2017:
Expand Down Expand Up @@ -114,7 +116,7 @@ IF NOT %ERRORLEVEL%==0 (
IF "%MAIL_ALERT%"=="yes" call:Log "Missing gzip.exe file. Did you install without mail alert support ?" && SET SCRIPT_ERROR=1
SET SCRIPT_ERROR=1
)
GOTO:EOF

:CheckMailValues
echo "%SOURCE_MAIL%" | findstr /I "@" > nul
Expand Down Expand Up @@ -144,7 +146,7 @@ echo ---------------------------------------------------------------------------
for /F %%d in ('type "%curdir%\smartd.conf" ^| findstr /R /C:"^/"') do "%curdir%\smartctl.exe" -a %%d >> "%SMART_LOG_FILE%"
for /F %%d in ('type "%curdir%\smartd.conf" ^| findstr /R /C:"^DEVICESCAN"') do SET DEVICESCAN=yes
IF "%DEVICESCAN%"=="yes" FOR /F "delims= " %%i in ('"%curdir%\smartctl.exe" --scan') do "%curdir%\smartctl.exe" -a %%i >> "%SMART_LOG_FILE%"
IF %ERRORLEVEL%==1 call:Log "Cannot extract smartctl data."
IF %ERRORLEVEL%==1 call:Log "Cannot extract some or all smartctl data."
GOTO:EOF

:GetComputerName
Expand Down

0 comments on commit 0061fbe

Please sign in to comment.