Skip to content

Commit

Permalink
create dir if not exist curl
Browse files Browse the repository at this point in the history
  • Loading branch information
d3nd3 committed Apr 15, 2023
1 parent 878c842 commit b2d078f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http_listener.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ for /f "usebackq tokens=*" %%a in ("%afile%") do (
set "http_file=!http_file:.bsp=.zip!"
SET errorlevel=
echo [http_listener.cmd] NEUTRAL: Trying to download "%http_server%!http_file!" to "user/maps/!http_file!"
curl -gk -f -sS -o "user/maps/!http_file!" "%http_server%!http_file!"
curl -gk -f -sS -o "user/maps/!http_file!" --create-dirs "%http_server%!http_file!"
IF "!errorlevel!"=="0" (
echo [http_listener.cmd] SUCCESS: "%http_file%" downloaded to "%http_server%!http_file!".
powershell -command "Expand-Archive -LiteralPath './user/maps/!http_file!' -DestinationPath ./user -Force"
Expand Down

0 comments on commit b2d078f

Please sign in to comment.