I have this little script to download repositories from bitbucket. The source of links to repos in repolinks.csv Script looks like that:
#!/bin/bash
while IFS=',' read -r link
do
cd /Users/krzysztofpaszta/temporaryprojects
git clone "$link"
echo Repo cloned to /users/krzysztofpaszta/temporaryprojects
done < /users/krzysztofpaszta/repolinks.csv
repolinks.csv:
[ https://bitbucket.org/projects/core-rider-settings, https://bitbucket.org/projects/build-a-bridge, https://bitbucket.org/projects/advertisements ]
Unfortunately I got error which clearly tells that bash Is trying to download repo from link which are actually all links in repolinks.csv connected: (or maybe I wrongly interpret this error.
Cloning into 'advertisements'...
fatal: unable to access 'https://bitbucket.org/projects/core-rider-settings, https://bitbucket.org/projects/build-a-bridge, https://bitbucket.org/projects/advertisements/': URL using bad/illegal format or missing URL
Can someone help and guide me with this problem? My loop is clearly not working at all.. thanks