dotfiles/.local/bin/scripts/git-get
2022-05-03 18:26:15 +02:00

7 lines
261 B
Bash
Executable file

#!/bin/sh -e
# Clones from resolving the arguments and switches into the new directory
# ARGS see git-repo
remote=$(git-repo "$@")
echo "Cloning $remote"
git clone $remote ${@:4} --recurse-submodules
cd "$(test -n "$2" && echo "$2" || basename ${remote%.git})"