Skip to content

Commit

Permalink
fix test, also thank to iHiD
Browse files Browse the repository at this point in the history
  • Loading branch information
GroophyLifefor committed Aug 21, 2024
1 parent 655d566 commit d1e068e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 26 deletions.
15 changes: 1 addition & 14 deletions tests/batch/extended/code.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
:: Disable command echoing

SET source_dir=C:\Users\Username\Documents
SET backup_dir=D:\Backup

REM Notify start of backup
echo Starting backup...
Expand All @@ -11,16 +10,4 @@ IF NOT EXIST "%source_dir%" (
REM Exit if source directory is missing
echo Source not found. Exiting...
exit /b
)

IF NOT EXIST "%backup_dir%" (
REM Create backup directory if it does not exist
echo Creating backup directory...
mkdir "%backup_dir%"
)

xcopy "%source_dir%\*" "%backup_dir%\" /E /I /Y
:: Perform backup, including subdirectories

echo Backup complete.
pause
)
13 changes: 1 addition & 12 deletions tests/batch/extended/expected_snippet.bat
Original file line number Diff line number Diff line change
@@ -1,21 +1,10 @@
@echo off

SET source_dir=C:\Users\Username\Documents
SET backup_dir=D:\Backup

echo Starting backup...

IF NOT EXIST "%source_dir%" (
echo Source not found. Exiting...
exit /b
)

IF NOT EXIST "%backup_dir%" (
echo Creating backup directory...
mkdir "%backup_dir%"
)

xcopy "%source_dir%\*" "%backup_dir%\" /E /I /Y

echo Backup complete.
pause
)

0 comments on commit d1e068e

Please sign in to comment.