1 2 3 4 5 6 7 8 9 10 11 12
#!/bin/bash set -eu for arg in "$@" do dir=${arg#*:} dir="$HOME"/src/${dir%/*} mkdir -pv "$dir" cd "$dir" git clone --verbose --progress "$arg" done