diff --git a/00-dependencies.sh b/00-dependencies.sh index 5f15f6e..6eef0e8 100644 --- a/00-dependencies.sh +++ b/00-dependencies.sh @@ -22,7 +22,7 @@ do echo "** $DEPENDENCYNAME Is Already Installed." else echo "** Installing $DEPENDENCYNAME" - apt-get install -y $DEPENDENCYPACKAGE + apt install -y $DEPENDENCYPACKAGE fi if which $DEPENDENCYNAME >/dev/null; diff --git a/README.md b/README.md index a23622f..dd98ba1 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,10 @@ `cd /etc` `git clone https://git.deathbybandaid.net/deathbybandaid/template_setup.git` + + +## OR + +`apt install curl` + +`curl -sSL https://git.deathbybandaid.net/deathbybandaid/template_setup/raw/branch/master/install/install.sh | bash` diff --git a/install/install.sh b/install/install.sh new file mode 100644 index 0000000..0ffe778 --- /dev/null +++ b/install/install.sh @@ -0,0 +1,24 @@ +#!/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"