Skip to content

Commit 7b9c6e1

Browse files
committed
Additional variable checks to catch more update errors
1 parent 96092b7 commit 7b9c6e1

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

batch encoder.bat

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ if /i "%1"=="--updated-from" (
4343
FOR /F "tokens=*" %%g IN ('%regex_command%') do (SET API_link_entry=%%g)
4444
set "UpdateAPIURL=%API_link_entry:~1,-2%"
4545

46-
rem Test if any of them are blank
47-
for %%a in (UpdateVersion, UpdateAPIURL) do if not defined %%a goto AutoUpdateError
46+
for %%a in (ver_entry, API_link_entry, UpdateVersion, UpdateAPIURL) do if not defined %%a goto AutoUpdateError
4847

4948
if exist "batch encoder v%UpdateVersion%.bat" set "append=_new"
5049

0 commit comments

Comments
 (0)