dotfiles/.local/bin/scripts/git-get
2021-10-11 10:02:14 +02:00

8 lines
243 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 "$(expr "$1" || basename ${remote%.git})"
exec "$SHELL"