Skip to content

Instantly share code, notes, and snippets.

@gh-gmn
gh-gmn / getciq.sh
Last active January 24, 2025 13:43
get ciq sources
#!/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"