Skip to content

Commit

Permalink
improved search function.
Browse files Browse the repository at this point in the history
  • Loading branch information
jahwi committed Dec 21, 2018
1 parent 2fd4b3c commit 583beb8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
18 changes: 10 additions & 8 deletions bget.bat
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ set auto-delete_logs=yes
:main
::print the bget intro, followed by the relevant output
for %%a in (" ---------------------------------------------------------------------------"
" Bget v0.1.5-201218 Batch Script Manager"
" Bget v0.1.6-211218 Batch Script Manager"
" Made by Jahwi in 2018 | Edits made by Icarus. | Bugs squashed by B00st3d"
" https://github.com/jahwi/bget"
" ---------------------------------------------------------------------------"
Expand Down Expand Up @@ -99,11 +99,13 @@ for %%a in (
" -help Prints this help screen."
" -help -doc Opens the full help text."
""
" Supported methods: -useJS -useVBS -usePS -useBITS -useCURL"
" Example: bget -get -useVBS test"
" Some Antiviruses flag the JS and VBS download functions."
" Either witelist them or use the BITS method."
" Type BGET -help -doc for the full help text
" [#]Supported methods: -useJS -useVBS -usePS -useBITS -useCURL"
" Example: bget -get -useVBS test"
" [#]Some Antiviruses flag the JS and VBS download functions."
" Either witelist them or use the BITS method."
" [#]If you downloaded Bget from anywhere other than Github, be sure to"
" upgrade it."
" [#]Type BGET -help -doc for the full help text
" ---------------------------------------------------------------------------"
) do echo=%%~a
if defined msg echo !msg!
Expand Down Expand Up @@ -658,9 +660,9 @@ set match_count=
echo.
echo Searching...
echo.
for /f "tokens=1-8 delims=," %%a in ('findstr /c:"%~2" "%~dp0\temp\master!sess_rand!.txt"') do (
for /f "tokens=1-8 delims=," %%a in ('findstr /i /c:"%~2" "%~dp0\temp\master!sess_rand!.txt"') do (
if /i "%%~a"=="[#]" (
for /f %%r in ('echo %%b,%%d,%%g ^| findstr /c:"%~2"') do (
for /f %%r in ('echo %%b,%%d,%%g ^| findstr /i /c:"%~2"') do (
set /a match_count+=1
if "!match_count!"=="1" echo No, Name, Description, Author
echo !match_count!. %%b ^|%%d ^| %%g
Expand Down
2 changes: 1 addition & 1 deletion bin/hash.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8b519f379a3294d96ad54148c9f9fbf9
5be969de0745bbfe7635478bd3415914
3 changes: 2 additions & 1 deletion docs/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,5 @@ v0.1.3 [02-DEC-2018] Bget can now get files from other repositor
v0.1.4 [14-DEC-2018] Added -SEARCH function. Use it to search scripts on the server.
Fixed an issue where the UPDATE function failed to update archived script.
v0.1.5 [18-DEC-2018] Fixed an issue where the # delimiter broke Bget.
[20-DEC-2018] Fixed an issue where paths with spaces broke Bget.
[20-DEC-2018] Fixed an issue where paths with spaces broke Bget.
v0.1.6 [21-DEC-2018] The SEARCH function is no longer case-sensitive.

0 comments on commit 583beb8

Please sign in to comment.