#!/bin/bash echo "Checking For git" if which git >/dev/null; then echo "* git Is Already Installed." else echo "* Running Update command and Installing git" apt update && apt install -y git fi echo "Checking for installation script" template_setup_path="/etc/template_setup" template_setup_git="https://git.deathbybandaid.net/deathbybandaid/template_setup.git" if [ ! -d "$template_setup_path" ]; then echo "* Installing Bash Aliases" git clone --quiet $template_setup_git $template_setup_path else echo "* Updating Bash Aliases" git -C $template_setup_path pull fi echo "Running installation" bash "$template_setup_path/template_setup.sh"