Add autoinstall command
This commit is contained in:
parent
d6985ded7e
commit
b5eaaead9b
14 changed files with 344 additions and 4 deletions
15
autoinstall/git_command.sh
Normal file
15
autoinstall/git_command.sh
Normal file
|
@ -0,0 +1,15 @@
|
|||
#!/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
|
Loading…
Add table
Add a link
Reference in a new issue