15 lines
228 B
Bash
15 lines
228 B
Bash
#!/usr/bin/env bash
|
|
|
|
target=${args[target]:?}
|
|
repo=${args[repo]:?}
|
|
|
|
if [ ! -d "$target" ]
|
|
then
|
|
echo "Installing repo $repo to $target"
|
|
|
|
mkdir -p "$target"
|
|
|
|
git clone --depth=1 "$repo" "$target" >/dev/null 2>&1
|
|
|
|
_run_hook
|
|
fi
|