Skip to content

Commit

Permalink
Creates a backup of VARS.txt when updating it
Browse files Browse the repository at this point in the history
  • Loading branch information
mrblomblo authored Jun 20, 2024
1 parent fad0539 commit 7b57bee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions update.bat
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ REM Update VARS.txt
cls
title v2: Updating VARS.txt...

echo Creating a backup...
type VARS.txt > VARS.txt.bak
echo Backup created!

powershell -executionpolicy Bypass -Command "Invoke-WebRequest -Uri https://github.com/mrblomblo/yt-dlp-usage-script/releases/latest/download/vars.txt -OutFile VARS.txt"
echo VARS.txt has been updated!
timeout 2 /NOBREAK >NUL
Expand Down

0 comments on commit 7b57bee

Please sign in to comment.