Skip to content

Commit

Permalink
Fixed a bug that would not show any error message
Browse files Browse the repository at this point in the history
  • Loading branch information
KyodaiKen authored Apr 18, 2021
1 parent f665863 commit 95f4d03
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions backup.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,22 @@ IF NOT ERRORLEVEL 0 (
ECHO You need administrative permissions to run this script.
EXIT /B 1
)
IF NOT EXIST %dism% >NUL 2>&1 (
IF NOT EXIST %dism% (
set dism=dism.exe
IF NOT EXIST %dism% >NUL 2>&1 (
IF NOT EXIST %dism% (
ECHO Could not find DISM anywhere.
EXIT /B 2
)
)
IF NOT EXIST "%vshadow%" >NUL 2>&1 (
IF NOT EXIST "%vshadow%" (
ECHO Could not find vshadow.exe anywhere.
EXIT /B 3
)
IF NOT DEFINED destdir (
ECHO Please specify the destination path.
EXIT /B 4
)
IF NOT EXIST "%destdir%" >NUL 2>&1 (
IF NOT EXIST "%destdir%" (
ECHO Destination path is not accessible.
EXIT /B 5
)
Expand All @@ -51,7 +51,7 @@ IF %srcpathonly:~-1%==\ (
ECHO Path must not end with a backslash.
EXIT /B 12
)
IF NOT EXIST "%sourcedir%" >NUL 2>&1 (
IF NOT EXIST "%sourcedir%" (
ECHO Source path is not accessible.
EXIT /B 8
)
Expand Down

0 comments on commit 95f4d03

Please sign in to comment.