From 010350c2bf75e716786f4eea1e31fdbbbaf3c6c7 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Tue, 8 Mar 2022 07:42:07 -0500 Subject: [PATCH] test --- template_setup.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/template_setup.sh b/template_setup.sh index 03e4386..ba0f0c7 100644 --- a/template_setup.sh +++ b/template_setup.sh @@ -1,8 +1,32 @@ #!/bin/bash echo "Setting up template environment" +## Script Location +SCRIPTDIR=$(dirname $0) +echo $SCRIPTDIR + +## Folder Name of Script +COMPLETEFOLDERPATH=$(realpath $SCRIPTDIR) +echo $COMPLETEFOLDERPATH + source $HOME/.bashrc +## Check for whiptail +if which whiptail >/dev/null; +then + : +else + apt-get install -y whiptail +fi + +## Check for git +if which git >/dev/null; +then + : +else + apt-get install -y git +fi + ## Update echo "Running topgrade" /opt/topgrade/topgrade