This commit is contained in:
deathbybandaid 2022-03-08 08:18:00 -05:00
parent 4513080352
commit 3930ac50ca

View File

@ -33,12 +33,14 @@ do
## End Of loop
done
echo "checking for topgrade directory"
topgrade_install_directory="/opt/topgrade"
if [ ! -d "$topgrade_install_directory" ]; then
echo "creating topgrade installation directory"
mkdir $topgrade_install_directory
fi
echo "checking for topgrade binary"
topgrade_binary="/opt/topgrade/topgrade"
topgrade_git_user="r-darwish"
topgrade_git_repo="topgrade"
@ -47,6 +49,7 @@ if [ ! -f "$topgrade_binary" ]; then
curl -s -L "https://github.com/$topgrade_git_user/$topgrade_git_repo/releases/latest" | egrep -o '/$topgrade_git_user/$topgrade_git_repo/releases/download/[0-9]*/[0-9]*-x86_64-unknown-linux-gnu.tar.gz' | wget --base=http://github.com/ -i - -O "$topgrade_binary.tar.gz"
fi
echo "checking for neofetch motd"
neofetch_motd="/etc/update-motd.d/01-neofetch"
if [ ! -f "$neofetch_motd" ]; then
echo "Installing Neofetch MOTD"
@ -54,6 +57,7 @@ if [ ! -f "$neofetch_motd" ]; then
echo "/usr/bin/neofetch" | tee --append $neofetch_motd &>/dev/null
fi
echo "checking for custom bash aliases"
custom_bash_aliases_path="/etc/bash_aliases"
custom_bash_aliases_git="https://git.deathbybandaid.net/deathbybandaid/bash_aliases"
if [ ! -d "$custom_bash_aliases_path" ]; then
@ -62,6 +66,7 @@ if [ ! -d "$custom_bash_aliases_path" ]; then
fi
source $HOME/.bashrc
echo "checking for topgrade confs"
custom_topgrade_confs_path="/etc/topgrade"
custom_topgrade_confs_git="https://git.deathbybandaid.net/deathbybandaid/topgrade"
if [ ! -d "$custom_topgrade_confs_path" ]; then