This commit is contained in:
deathbybandaid 2022-03-08 09:36:50 -05:00
parent 6db77cacc2
commit 0908745ed8

View File

@ -1,4 +1,17 @@
# The Contents of this file will be making Windows CLI commands for linux # The Contents of this file will be running our setup command
# Run Template Setup Script # Run Template Setup Script
alias template-setup='echo "Pulling Template git repositories" && templategitup && bash /etc/template_setup/template_setup.sh' # alias template-setup='bash /etc/template_setup/template_setup.sh'
template_setup_path="/etc/template_setup"
template_setup_repo="https://git.deathbybandaid.net/deathbybandaid/template_setup.git"
template-setup ()
{
if [ -d "$template_setup_path" ] ; then
git -C $template_setup_path pull --quiet && echo "Pulled $template_setup_path"
else
git clone --quiet "$template_setup_repo" "$template_setup_path" && echo "Pulled $template_setup_path"
fi
bash /etc/template_setup/template_setup.sh
}