I want to automate some config file downloads from my repo without using git (just plain set up configurations) and for that I'd like to download those files with curl. As I need user auth for it im curious how I could handle this within one command?
curl --user Linus https://my.repo.com/repo/file.txt -o /home/user/download && https://my.repo.com/repo/file2.txt -o /home/user/forlaterusage
above command does not work as intended.
What I want to achieve is that I only have to enter my password once for multiple downloads.