dotfiles/.local/bin/scripts/git-get
2021-07-09 09:08:11 +02:00

7 lines
238 B
Bash
Executable file

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