This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # github really really doesn't like me having links in here, so have generated them dynamically | |
| # this script downloads repos of public Garmin Connect IQ source code for Garmin devices to help developers | |
| while read host user repo | |
| do | |
| [ $host = bb ] && url=https://bitbucket.org | |
| [ $host = gh ] && url=https://github.com | |
| [ $host = gl ] && url=https://gitlab.com | |
| url="$url/$user/$repo" | |
| dir="$host-$user-$repo" |