Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
Hotfix and VerUpdate
  • Loading branch information
PIRANY1 committed Oct 30, 2023
1 parent 15d8ff8 commit 4057b07
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions dataspammer.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
if not defined devtools (goto topppp) else (goto dtd)
:topppp
setlocal enabledelayedexpansion
set "gitver12=v2.2"
set "gitver12=v2.3"
@title Starting Up...
echo Checking for Files...
echo Checking for Data...
Expand Down Expand Up @@ -44,7 +44,7 @@ set "api_url=https://api.github.com/repos/%owner%/%repo%/releases/latest"
echo Fetching Git Url....
@ping -n 1 localhost> nul
for /f "usebackq tokens=*" %%i in (`curl -s %api_url% ^| jq -r ".tag_name"`) do (set "latest_version=%%i")
if %latest_version% == v2.2 (goto UpToDate) else (goto gitverout)
if %latest_version% == v2.3 (goto UpToDate) else (goto gitverout)

:UpToDate
scoop update
Expand Down Expand Up @@ -153,11 +153,6 @@ rem ----------------------------------------------------------------------------
rem --------------------------------------------------------------------------------------------------------------------------------------------------
:ulttop
color 2
if "%noerror2%" == "true" (
goto noerr
) else (
start.bat
)

:noerr
if "%settingsmainscriptvar%" == "1" goto setting
Expand Down Expand Up @@ -248,7 +243,7 @@ set "api_url=https://api.github.com/repos/%owner%/%repo%/releases/latest"
echo Fetching Git Url....
@ping -n 1 localhost> nul
for /f "usebackq tokens=*" %%i in (`curl -s %api_url% ^| jq -r ".tag_name"`) do (set "latest_version=%%i")
if %latest_version% == v2.2 (goto UpToDate) else (start.bat)
if %latest_version% == v2.3 (goto UpToDate) else (start.bat)

:UpToDate
@ping -n 1 localhost> nul
Expand Down

0 comments on commit 4057b07

Please sign in to comment.