Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

read the git-for-windows url from get.x-cmd.com #7

Open
edwinjhlee opened this issue Mar 5, 2025 · 0 comments
Open

read the git-for-windows url from get.x-cmd.com #7

edwinjhlee opened this issue Mar 5, 2025 · 0 comments

Comments

@edwinjhlee
Copy link
Member

edwinjhlee commented Mar 5, 2025

for /f "delims=" %%a in ('curl -s "https://get.x-cmd.com/git-for-windows.latest.url.txt"') do set "url=%%a" 
     
    :: Check if a URL was read. 
    if not defined url ( 
      echo Error reading URL. Exiting. 
      goto :eof 
    ) 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant