test
This commit is contained in:
parent
f751b0d6d0
commit
010350c2bf
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user