File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 5
5
:: Config can be changed in erroraction_config.cmd
6
6
7
7
:: CHANGELOG:
8
+ :: 17 Avr 2017:
9
+ :: - Fixed bogus preflight function end
8
10
:: 13 Avr 2017:
9
11
:: - Fixed preflight checks because of ambiguous batch syntax
10
12
:: 12 Avr 2017:
@@ -114,7 +116,7 @@ IF NOT %ERRORLEVEL%==0 (
114
116
IF " %MAIL_ALERT% " == " yes" call :Log " Missing gzip.exe file. Did you install without mail alert support ?" && SET SCRIPT_ERROR = 1
115
117
SET SCRIPT_ERROR = 1
116
118
)
117
-
119
+ GOTO : EOF
118
120
119
121
:CheckMailValues
120
122
echo " %SOURCE_MAIL% " | findstr /I " @" > nul
@@ -144,7 +146,7 @@ echo ---------------------------------------------------------------------------
144
146
for /F %%d in ('type " %curdir% \smartd.conf" ^ | findstr /R /C:" ^/" ') do " %curdir% \smartctl.exe" -a %%d >> " %SMART_LOG_FILE% "
145
147
for /F %%d in ('type " %curdir% \smartd.conf" ^ | findstr /R /C:" ^DEVICESCAN" ') do SET DEVICESCAN = yes
146
148
IF " %DEVICESCAN% " == " yes" FOR /F " delims= " %%i in ('" %curdir% \smartctl.exe" --scan') do " %curdir% \smartctl.exe" -a %%i >> " %SMART_LOG_FILE% "
147
- IF %ERRORLEVEL% == 1 call :Log " Cannot extract smartctl data."
149
+ IF %ERRORLEVEL% == 1 call :Log " Cannot extract some or all smartctl data."
148
150
GOTO :EOF
149
151
150
152
:GetComputerName
You can’t perform that action at this time.
0 commit comments