Add autoinstall command

This commit is contained in:
Tobias Reisinger 2024-01-09 16:48:11 +01:00
parent d6985ded7e
commit b5eaaead9b
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
14 changed files with 344 additions and 4 deletions

View 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